Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 暴露 useQuery stream #59

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

WhimsFate
Copy link
Collaborator

No description provided.

@@ -69,7 +111,14 @@ export function createRestQuery<ModelType, DataType>(
}

let sub: Subscription | null = null;

let requestId = 0
const $stream = new Subject<InfoDataType<DataType> & {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

换个名字吧,会有warning(在Vue 2.x的时候),而且Observable之类的结构一般命名都是$放到后面

@skyline0705 skyline0705 merged commit cd6f9da into master Aug 24, 2023
1 check passed
WhimsFate added a commit that referenced this pull request Aug 24, 2023
WhimsFate added a commit that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants