force update fix

in react we cann pass callback to forceUpdate
This commit is contained in:
Stepan Mikhaylyuk
2015-09-11 18:11:31 +03:00
parent a461a243e2
commit ed8c24df07

4
react/react.d.ts vendored
View File

@@ -135,7 +135,7 @@ declare namespace __React {
constructor(props?: P, context?: any);
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(): void;
forceUpdate(callBack?: () => any): void;
render(): JSX.Element;
props: P;
state: S;
@@ -932,7 +932,7 @@ declare module "react/addons" {
constructor(props?: P, context?: any);
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(): void;
forceUpdate(callBack?: () => any): void;
render(): JSX.Element;
props: P;
state: S;