forked from coracle/flotilla
Handle hot module unloading in layout
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
always,
|
||||
call,
|
||||
on,
|
||||
hash,
|
||||
last,
|
||||
@@ -281,8 +282,8 @@ const syncWrapManager = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
export const syncDataStores = () =>
|
||||
Promise.all([
|
||||
export const syncDataStores = async () => {
|
||||
const unsubscribers = await Promise.all([
|
||||
syncEvents(),
|
||||
syncTracker(),
|
||||
syncRelays(),
|
||||
@@ -292,3 +293,6 @@ export const syncDataStores = () =>
|
||||
syncPlaintext(),
|
||||
syncWrapManager(),
|
||||
])
|
||||
|
||||
return () => unsubscribers.forEach(call)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user