Skip to content
weftGitHub

Diagnostics

S002

A defineState scope reached on the server outside a render (module scope, load, a server function, a timer): it would be shared by every request.

Fix: Read it in a component, a handler or a derived; pass values into server code as arguments.

Status in weft@0.1.0: reported in dev by the runtime (a console warning).

More: weft docs state.