Skip to content

Commit dcb7587

Browse files
authored
Merge pull request #54 from janczizikow/feat/stable-handlers
feat: flatten dependencies in useModal
2 parents e6d8431 + 385dc38 commit dcb7587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export function useModal(modal?: any, args?: any): any {
325325
delete hideModalCallbacks[mid];
326326
},
327327
}),
328-
[mid, modalInfo],
328+
[mid, modalInfo?.args, modalInfo?.keepMounted, modalInfo?.visible],
329329
);
330330
}
331331
export const create = <P extends Record<string, unknown>>(

0 commit comments

Comments
 (0)