79331274

Date: 2025-01-05 18:07:22
Score: 1
Natty:
Report link

To avoid:

Hooks can only be called inside of the body of a function component.

Use zustand/vanilla instead:

import { createStore } from 'zustand/vanilla';

export const useOrganisationStoreBase = createStore<OrganisationStore>()(...)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kader