@zedux/atoms
Version:
A Molecular State Engine for React
15 lines (14 loc) • 368 B
TypeScript
/**
* Returns a function that can be called to invalidate the current atom
* instance.
*
* @deprecated This injector will be removed in the next major release. Use the
* following pattern instead:
*
* ```ts
* const self = injectSelf()
* // then in a callback or effect:
* self.invalidate()
* ```
*/
export declare const injectInvalidate: () => () => void;