-
Notifications
You must be signed in to change notification settings - Fork 73
feat!: Use query option pattern and support useSuspense #263
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!: Use query option pattern and support useSuspense #263
Conversation
|
This is actually very cool, let’s try to make this merged! |
…ery components to use query function; Add suspense query to the generation; Update context
4925fa7 to
26ede5b
Compare
|
@fabien0102 rebased and ready for review |
| @@ -22,10 +22,6 @@ export const getContext = (prefix: string, componentsFile: string) => | |||
| */ | |||
| enabled?: boolean; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fabien0102
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I did update the context template to fit the new types requirement. Let’s ship this!

Migrate to query option pattern.
This is a breaking change:
{namespace}Contextneeds to be updated!react-query@5is required (useSuspense support)Ref
https://tkdodo.eu/blog/the-query-options-api