An observable request lib. Use for data operations on a centralized object. Some functionalities: Promise, Data in Memory, Paging in Server or in Memory.This lib depends on open-observable
We recommend other libs from the 'open' universe.
with npm
npm install open-form
Or with yarn
yarn add open-form
In the index.js file, wrap your components with GlobalObservable to recognize the observables
root.render(
<React.StrictMode>
<GlobalObservable>
<App />
</GlobalObservable>
</React.StrictMode>
);
- Datasource
- DatasourceProvider
- InMemoryDatasourceProvider
- RequestSource
- useRawDatasource - receive a DatasourceProvider and returns a Datasource<TInput, TOutput>
- useInMemoryDatasourceProvider - receive an array or Subscriber<T[]> and returns a DatasourceProvider
- useRequest - receive a function with TInput params and returns a Promise