Skip to content

Commit

Permalink
fix: added server side snapshot callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroerta committed May 30, 2022
1 parent 58aeeb3 commit 5cd5ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useSyncMorfeo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ function subscribe(...callback: Parameters<typeof themeHandler.subscribe>) {
* It subscribes the component/hook where is used to theme changes
*/
export function useSyncMorfeo() {
return useSyncExternalStore(subscribe, morfeo.getTheme);
return useSyncExternalStore(subscribe, morfeo.getTheme, morfeo.getTheme);
}

0 comments on commit 5cd5ceb

Please sign in to comment.