UNPKG

react-keep-alive

Version:

Package will allow components to maintain their status, to avoid repeated re-rendering.

28 lines (27 loc) 629 B
import * as React from 'react'; interface IProps { setMounted: (value: boolean) => void; getMounted: () => boolean; onUpdate: () => void; } interface IState { component: any; } export default class AsyncComponent extends React.Component<IProps, IState> { state: { component: null; }; /** * Force update child nodes * * @private * @returns * @memberof AsyncComponent */ private forceUpdateChildren; componentDidMount(): void; componentDidUpdate(): void; shouldComponentUpdate(): boolean; render(): null; } export {};