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
The state.tsx file is referenced by 2 entries, generating 2 assets
One from "use server-entry"
The other from "use client-entry" -> "use server"
Normally, the IDs of the two assets should be the same, but since the ID generation depends on getEnvironmentHash, this function will use the values of different contexts on package.json as hash parameters.
Because includeNodeModules will participate in hash calculation, if the client and server are inconsistent, the related env.id will be inconsistent. This will lead to the generation of 2 assets with different IDs, but they are actually the same file's asset.
I think we need a more stable env.id generation scheme for RSC scenarios
Uh oh!
There was an error while loading. Please reload this page.
I understand that the Server Function should only register the reference relationship during compilation and should not be split into multiple files.
This means that the memory state on the server side has multiple copies.
Waku's behavior is as expected
Here is an example to reproduce the problem
repo
🌍 Your Environment
The text was updated successfully, but these errors were encountered: