This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Preload re-run upon hydration if server preload returned falsy #843
Open
Description
Describe the bug
If the server preload returns something falsy, the client-side preload is run upon hydration.
Expected behavior
If the server preload returns something serializable (even if it's falsy), the client-side preload should not be run upon hydration.
I imagine this could be solved by doing a || {}
thing earlier in the process, so that the client actually gets a serialized {}
in the initial rendered page, and knows not to run preload.
Severity
Probably low. If a preload is returning no data, it's probably not making any wasteful repeated ajax requests on the client.