Skip to content

Commit

Permalink
fix #1036
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Jan 15, 2024
1 parent 64289d1 commit 8847eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useToastContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function useToastContainer(props: ToastContainerProps) {
registerContainer(props)
).current;
setProps(props);
const snapshot = useSyncExternalStore(subscribe, getSnapshot);
const snapshot = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);

function getToastToRender<T>(
cb: (position: ToastPosition, toastList: Toast[]) => T
Expand Down

0 comments on commit 8847eae

Please sign in to comment.