Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
0ef04d7 to
e52ca86
Compare
e52ca86 to
8e3cab6
Compare
8e3cab6 to
e2fec3a
Compare
e2fec3a to
f963cbc
Compare
f963cbc to
08e3201
Compare
08e3201 to
4605f5f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin features when merged
@tanstack/react-queryfor use on Browser, Mobile and Serverside@tanstack/react-queryto create aUniversalRouteScreenwrapper for data fetching everywhereRecommended workflow
1. Start with component & bridge in
/screens/folderSomeScreen.tsx2. Use bridge & component in workspace
/routes/folder/routes/subpages/[slug]/index.ts-- in e.g. the@app/coreworkspace3. Reexport route file in Expo & Next.js app routers
app/subpages/[slug]/index.tsin@app/expoworkspaceapp/subpages/[slug]/page.tsin@app/nextworkspace💡 Improving it with GraphQL
This is fully optional, but pairing this pattern with something like GraphQL (e.g. #5 plugin: Apollo GraphQL) is actually a great combo, because:
This is one of the reasons I recommend GraphQL for fetching data in Universal apps. We recommend you create or use some universal GraphQL fetcher together with graphql.tada 🪄
🚀 We've perfected this Universal Data Fetching pattern in the FullProduct.dev ⚡️ Starterkit.
Official
@tanstack/react-querydocshttps://tanstack.com/query/latest/docs/framework/react/overview