Re-add persistence
This commit is contained in:
@@ -153,6 +153,9 @@ const App = () => {
|
||||
const toggleDrawer = () => {
|
||||
setDrawerOpen(!drawerOpen);
|
||||
};
|
||||
useEffect(() => {
|
||||
setSubscriptions(repository.loadSubscriptions());
|
||||
}, [/* initial render only */]);
|
||||
useEffect(() => {
|
||||
connectionManager.refresh(subscriptions, handleNotification);
|
||||
repository.saveSubscriptions(subscriptions);
|
||||
|
||||
Reference in New Issue
Block a user