Dispatcher initialization at a 5000ms time frame #717
VincentVanTongeren
started this conversation in
General
Replies: 1 comment 14 replies
-
I'm not sure how this internal function is related to what you're trying to do. |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the reasoning behind the 5000ms time frame for adding a store?
In dispatcher.ts there is the following line:
export const $$addStore = new ReplaySubject(50, 5000);
In my use case, I have a custom storage set up with persist state. GetItem is an observable that internally needs to wait until there is a connection with another system in order to retrieve the persisted initial data. This requires a manual action and since the timer starts ticking automatically, more often than not, this 5000ms window passes.
In my local environment, I have removed the 5000ms restriction to the default restriction (Infinity) and now it works like a charm. I would like to know if the 5000ms is there for a very important reason and if I can remove the restriction. The most ideal solution would be to be able to override this parameter or supply my own subject.
Beta Was this translation helpful? Give feedback.
All reactions