Refine sync, move repository publish to global onEvent
This commit is contained in:
@@ -23,6 +23,7 @@ export const getDefaultNetContext = (overrides: Partial<NetContext> = {}) => ({
|
||||
onAuth: onAuth,
|
||||
onEvent: (url: string, event: TrustedEvent) => {
|
||||
tracker.track(event.id, url)
|
||||
repository.publish(event)
|
||||
|
||||
// Eagerly load profiles since they're critical to UX
|
||||
if (event.kind !== WRAP) {
|
||||
|
||||
Reference in New Issue
Block a user