Skip to content

Commit fdb5178

Browse files
committed
Revert changes on src/theme/Root.js
1 parent 827b1b6 commit fdb5178

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/theme/Root.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ export default function Root({ children }) {
2626
// attributeFilter: ['data-theme']
2727
// });
2828

29-
return () => {
30-
// Cleanup - observer is commented out, so nothing to disconnect
31-
};
29+
return () => observer.disconnect();
3230
}, []);
3331

3432
return (

0 commit comments

Comments
 (0)