Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 581 Bytes

File metadata and controls

14 lines (8 loc) · 581 Bytes

We use Jotai for global state management. It is recommended to go through the tutorial.

The documentation is really confusing, so you might also want do some reading on (reactive) signals to get an idea of how it works.

Anything that must be accessible from any component or should persist sessions should be placed within src/globals.

conventions

Take a look at src/globals/model.ts for how things should be layed out.

General format:

  • private atoms (prefix with _, do not export)
  • public atoms (export these)