UNPKG

useforceupdatefromanywhere

Version:

[![npm version](https://img.shields.io/npm/v/react-forceupdate.svg?style=flat-square)](https://www.npmjs.com/package/force2update?activeTab=versions) [![npm downloads](https://img.shields.io/npm/dm/react-forceupdate.svg?style=flat-square)](https://www.npm

8 lines (7 loc) 413 B
export declare const useForceUpdate: () => () => void; interface IMainFactoy extends Object { forceToUpdate: (componentName: string) => void; } export declare const useForceUpdateFromAnywhere: (mainFactory: IMainFactoy, componentName: string, cleaningCallBack?: () => void) => void; export declare const useEvents: (mainFactory: any, componentName: string, forceUpdate: () => void) => void; export {};