We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af51c1 commit ca7dd48Copy full SHA for ca7dd48
src/create-use-modal.tsx
@@ -9,5 +9,6 @@ export const createUseModal = <
9
...param: CreateModalFunctionParam<Data, Param>
10
) => {
11
const Modal = createModal<Data, Param>(...param);
12
- return () => useModal<typeof Modal>(<Modal />);
+ const modalElement = <Modal />;
13
+ return () => useModal<typeof Modal>(modalElement);
14
};
0 commit comments