You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to convert my Next.js app to native using solito.
I have predefined routes using getStaticPaths with getStaticProps.
My data doesn't change much, but when it does I'm just using revalidate on demand by Next.
The question is how do I translate it to be supported by Solito, either using getStaticPaths or Props?
I've thought about prefetching the data on the native side, but it's a lot of api request I don't want to be made because the data almost never changes.
it will introduce extra loading state when navigating to pages depended on the params id.
I've thought about enabling cache-control headers but if I do so I can't revalidate on demand the data.
any suggestions what the right approach for this?
I've even though about fetching all the data during build time, but I haven't found any information about it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to convert my Next.js app to native using solito.
I have predefined routes using
getStaticPaths
withgetStaticProps
.My data doesn't change much, but when it does I'm just using
revalidate on demand
by Next.The question is how do I translate it to be supported by Solito, either using getStaticPaths or Props?
I've thought about prefetching the data on the native side, but it's a lot of api request I don't want to be made because the data almost never changes.
I've thought about enabling cache-control headers but if I do so I can't revalidate on demand the data.
any suggestions what the right approach for this?
I've even though about fetching all the data during build time, but I haven't found any information about it.
Beta Was this translation helpful? Give feedback.
All reactions