Skip to content

Commit

Permalink
feat: allow useFullscreen to update
Browse files Browse the repository at this point in the history
  • Loading branch information
linspw authored Sep 30, 2024
1 parent 397e782 commit c43b241
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function useFullscreen<T extends HTMLElement = any>() {
}

return undefined;
}, []);
}, [_ref.current]);

return { ref, toggle, fullscreen } as const;
}

0 comments on commit c43b241

Please sign in to comment.