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
Not sure if I oversee something, but at least in the preload documentation and also not in these forums here and also not in the preload types from typescript, can I infer how preload uses the options from https://swr.vercel.app/docs/api
Is it even using options?
Is it using the default global configured options from the provider?
Please add clarification to the docs how preload works with options.
I would like to use preload with suspense (if needed), as my usecase is to use preload in the React Router v6.4 data loaders possibly with defer and use Suspense in the React Component.
Thanks in advance!
EDIT: Even if the config options do not apply to the preload feature because it makes no sense to apply them to that feature, it would be nice to state this in the documentation, so people who are new to SWR have an easier time to understand this concept.
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
-
Not sure if I oversee something, but at least in the preload documentation and also not in these forums here and also not in the preload types from typescript, can I infer how preload uses the options from https://swr.vercel.app/docs/api
Is it even using options?
Is it using the default global configured options from the provider?
Please add clarification to the docs how preload works with options.
I would like to use preload with suspense (if needed), as my usecase is to use preload in the React Router v6.4 data loaders possibly with defer and use Suspense in the React Component.
Thanks in advance!
EDIT: Even if the config options do not apply to the preload feature because it makes no sense to apply them to that feature, it would be nice to state this in the documentation, so people who are new to SWR have an easier time to understand this concept.
Beta Was this translation helpful? Give feedback.
All reactions