How to pass config options to preload? #2978
Unanswered
electrocnic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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