Skip to content
public-library›Rules›React›Keep request data out of shared module state

Keep request data out of shared module state

Do not store request- or user-specific data in mutable module-level variables on the server. Pass it through props, function arguments, or a request-scoped API such as React.cache.

In the full rule