appframe-react

This package contains hooks and context used to connect React components to data objects and stored procedures. There are a few kinds of hooks available:

  1. Data object state hooks. Hooks that extract state from data objects. Commonly used hooks are useData, useLoading and useCurrentRow. useDataWithFilter is available for backwards compatibility.

  2. Procedure hooks. Currently just useProcedure, used to execute a stored procedure whenever a set of parameters changes

  3. Binding hooks. Hooks that help you bind inputs and buttons to data objects. If you are using MUI, you can usually find what you need in the appframe-mui package.

  4. State persistance hooks. Hooks that can be used instead of React useState, and persist state in URL or indexed DB

  5. Utility hooks. Various other hooks that doesn't necessarily require Appframe to be used. Currently only useDebounce is available.

Last updated

Was this helpful?