-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreliable storage subscriptions #186
Comments
I believe double map can't be subscribed with only the primary prefix. You can only subscribe to specific values, so insert doesn't trigger as it doesn't affect an existing value (only mutate would) |
hmm, but the change from None to Some participant index should trigger, actually |
I have asked in substrate-technical, let's see if an answer comes. We are not too reliant on this anyhow. I also doubt if a subscription makes sens in some cases where we only occasionally get updates. It might be better to fetch the updates, when necessary. |
well, a reactive design relies on subscriptions, not polling. So I do prefer the current model |
I am subscribing to storage double-map values via polkadot-js-api. In some cases, there seems to be no subscription updates, depending on the operation performed in the pallet.
double_map::remove_prefix
is used, triggered by scheduler palletdouble_map::insert
is used triggered by an extrinsicI could observe this so far for the
ParticipantIndex
The text was updated successfully, but these errors were encountered: