Skip to content
public-library›Rules›React›Run app-wide initialization once per app load

Run app-wide initialization once per app load

Run setup that must happen once per app load in the entry module or behind a module-level guard, not in a component's mount Effect.

In the full rule