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
Thanks for the detailed bug report. I see the issue. It's interesting. With singleflight it assumes it does the fetching on the server for all invalidation. So it not being in the load function doesn't work. I didn't think of this. I was concerned with new things on forward navigation which do work. But I'm not sure how to make this one work.. maybe we need to include the invalidate keys on the response and that way if there are none we don't be so strict.. It's interesting.
Describe the bug
If a route has a
load
function that preloads cachex
, not-preloaded cachey
will have an inconsistent revalidation behavior (❌):Behaviour with
route load
function:x
+y
y
is revalidatedaction(serverFunction)
action(serverFunction)
action(() => serverFunction())
action(() => serverFunction())
Behaviour without
route load
function:x
+y
y
is revalidatedaction(serverFunction)
action(serverFunction)
action(() => serverFunction())
action(() => serverFunction())
Your Example Website or App
Solid-Start with Basic Template
Steps to Reproduce the Bug or Issue
1.
correctly updatesx
andy
preloadX
in the code totrue
and save1.
now does not updatey
Expected behavior
Preloading the cache
x
in a routeload
function, should not break the implicit revalidation of cachey
.Case
1.
from the table above should always revalidatex
andy
.Screenshots or Videos
huch-2024-04-22_20.50.40.mp4
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: