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
It would be preferred to be able to return undefined from the serverCacheKey function and know that the component won't be cached. Currently, it would be cached by its name and would collide with any other uses of the component that also returned undefined.
What does the proposed API look like?
The same API for the existing serverCacheKey that takes the props object, but allow for returning undefined to indicate, to skip looking for the component in the server renderer cache (even if the component has a name).
Reacted by Matthew Pietz, Sean Kennedy, j12345j6 and Dan Gautsch
Activity
posva commentedon Sep 13, 2018
I think an explicit
falserather than undefined makes more sense, butnullandundefinedalso look like an invalid keyurbnjamesmi1 commentedon Sep 13, 2018
Sounds good. Just looking for a way to conditionally prevent caching.
feat(ssr): allow opting-out of caching by returning false in serverCa…
test: test for #8790
yyx990803 commentedon Dec 20, 2018
Closed via ab24285
feat(ssr): allow opting-out of caching by returning false in serverCa…
test: test for vuejs#8790