mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
make sure the tree has been reloaded before navigating to the new feed subscription
This commit is contained in:
@@ -39,8 +39,8 @@ export function Subscribe() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
const subscribe = useAsyncCallback(client.feed.subscribe, {
|
const subscribe = useAsyncCallback(client.feed.subscribe, {
|
||||||
onSuccess: sub => {
|
onSuccess: async sub => {
|
||||||
dispatch(reloadTree())
|
await dispatch(reloadTree())
|
||||||
dispatch(redirectToFeed(sub.data))
|
dispatch(redirectToFeed(sub.data))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user