Re-add persistence
This commit is contained in:
parent
fef46823eb
commit
0958c1d527
3 changed files with 24 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue