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
Maybe we can mention the need to use Suspense for this to work? I haven't worked with Vue in a very long time and didn't know about the suspense API, so when i tried to use the useStoryblok hook nothing got rendered because i hadn't wrapped my component with Suspense.
I don't see why using Suspense is required, i think the useStoryblok hook could be redesigned to initially return null and once data has fetched return the actual data (as you would with e.g. useEffect in react) but now we're relying on experimental functionality and it is not documented.
So my suggestion is to either mention the need of the experimental Suspense component or make it work without using Suspense which should be a fairly quick fix.
The text was updated successfully, but these errors were encountered:
Hey!
Maybe we can mention the need to use Suspense for this to work? I haven't worked with Vue in a very long time and didn't know about the suspense API, so when i tried to use the
useStoryblok
hook nothing got rendered because i hadn't wrapped my component with Suspense.I don't see why using Suspense is required, i think the useStoryblok hook could be redesigned to initially return null and once data has fetched return the actual data (as you would with e.g.
useEffect
in react) but now we're relying on experimental functionality and it is not documented.So my suggestion is to either mention the need of the experimental Suspense component or make it work without using Suspense which should be a fairly quick fix.
The text was updated successfully, but these errors were encountered: