File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/node_modules/overmind-react/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ export const createHook = <Config extends IConfiguration>(
7575 ? ReactCurrentOwner . current . elementType
7676 : { }
7777 }
78- const useForceRerender = ( ) : VoidFunction => {
78+ const useForceRerender = ( ) => {
7979 const [ , setState ] = useState ( true )
80- const forceRerender : VoidFunction = ( ) : void => {
81- setState ( ( state ) => ! state )
80+ const forceRerender = ( _ , __ , flushId ) : void => {
81+ setState ( flushId )
8282 }
8383 return forceRerender
8484 }
@@ -116,7 +116,7 @@ export const createHook = <Config extends IConfiguration>(
116116 )
117117
118118 tree . track ( ( _ , __ , flushId ) => {
119- rerenderComponent ( )
119+ rerenderComponent ( _ , __ , flushId )
120120 overmind . eventHub . emitAsync ( EventType . COMPONENT_UPDATE , {
121121 componentId : component . __componentId ,
122122 componentInstanceId,
You can’t perform that action at this time.
0 commit comments