mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #978 from PR0M3TH3AN/codex/fix-community-filtering-and-blurring-on-return
Hydrate access control cache before refresh
This commit is contained in:
1 file changed
+7
@@ -130,6 +130,13 @@ class AccessControl {
|
||||
}
|
||||
};
|
||||
|
||||
// Attempt a synchronous hydration so downstream consumers (like
|
||||
// bootstrapTrustedSeeds) have immediate access to any cached admin
|
||||
// state before they trigger refresh logic. This avoids a race where the
|
||||
// async microtask hydration hasn't executed yet when those consumers
|
||||
// call into `refresh()` and encounter an empty cache.
|
||||
runHydrate();
|
||||
|
||||
if (typeof queueMicrotask === "function") {
|
||||
queueMicrotask(runHydrate);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user