Skip to content

Commit 33d969a

Browse files
add instance paramteres into Promises resolve
1 parent ba01956 commit 33d969a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useDynamicTabs/useDynamicTabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function useDynamicTabs(getDeps, options = {}) {
2121
api.trigger('onInit', api.userProxy);
2222
});
2323
useLayoutEffect(() => {
24-
api.trigger('_onFlushEffects', api.userProxy, { currentData: api.getCopyData() });
24+
api.trigger('_onFlushEffects', api.userProxy, { currentData: api.getCopyData(), instance: api.userProxy });
2525
}, [flushState]);
2626
useLayoutEffect(() => {
2727
const oldState = api.getCopyPerviousData()

0 commit comments

Comments
 (0)