We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a90dc commit 0634719Copy full SHA for 0634719
1 file changed
apps/polycentric/src/common/lib/polycentric-hooks/PolycentricProvider.tsx
@@ -150,6 +150,10 @@ export function PolycentricProvider({
150
151
// Only sync when we already have an identity to sync for.
152
if (c.activeIdentityKey) {
153
+ // Read follows from the local store immediately — don't gate
154
+ // the UI on the network sync. The sync runs in parallel and
155
+ // re-refreshes once new events have been pulled in.
156
+ await useFollows.getState().refresh(c);
157
void c
158
.sync()
159
.then(() => useFollows.getState().refresh(c))
0 commit comments