Refine sync, move repository publish to global onEvent

This commit is contained in:
Jon Staab
2024-09-27 12:13:20 -07:00
parent b6c338376a
commit f27a64250e
4 changed files with 38 additions and 30 deletions
+1
View File
@@ -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) {