Skip to content

Sharing API request logic between native and web with SEO in mind #50

Discussion options

You must be logged in to vote

there are some simple ways with clients like SWR. Just make the product screen optionally receive a product prop, which you use as the initialData field in SWR. On Web, statically fetch the data, and pass it as a prop to the screen so it has the data on first render.

as for SEO, see this guide: https://www.dripsy.xyz/get-started/web/seo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thecaffeinatedengineer
Comment options

Answer selected by thecaffeinatedengineer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants