Ramonda

RMD034 — State written during create or mount is not carried to the client

@created and @mounted do not run again on the client: hydration adopts the server's DOM and restores state from the blob. A value computed in either is therefore server-only unless it is @state, which is serialized, or marked @persist.

Mark it @persist if the client needs the server's answer. If the work is cheap and deterministic, move it somewhere that runs on both sides instead. See hydration mismatches.

Next