@zedux/react
Version:
A Molecular State Engine for React
14 lines (13 loc) • 506 B
TypeScript
/**
* Get the current ecosystem controlling atom usages in this component.
*
* If an ecosystem has been provided via an `<EcosystemProvider>` above the
* current component, `useEcosystem()` returns a reference to the provided
* ecosystem.
*
* If no ecosystem has been provided, `useEcosystem()` returns the global
* ecosystem (creating it if it hasn't been created yet).
*
* Returns an Ecosystem class instance.
*/
export declare const useEcosystem: () => import("@zedux/atoms").Ecosystem<any>;