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
Is there any way to mock a route data in the Composition/Variants files?
I see that there is a mockedPageData in the kitbook +layout.js and I can add data there and it's passed everywhere, I can even fetch from an api and get real data which is every nice!
Is this mockedPageData updatable anywhere outside of the +layout.js?
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
-
Is there any way to mock a route data in the Composition/Variants files?
I see that there is a
mockedPageData
in the kitbook+layout.js
and I can add data there and it's passed everywhere, I can even fetch from an api and get real data which is every nice!Is this
mockedPageData
updatable anywhere outside of the+layout.js
?Beta Was this translation helpful? Give feedback.
All reactions