address race condition where assemblies exist on the server but aren'…#711
Open
address race condition where assemblies exist on the server but aren'…#711
Conversation
…t loaded in the client state when features are being added; prevents the MobX State Tree error by checking session state before broadcastLocations
Contributor
Author
Contributor
|
The error that refers to |
Contributor
|
@alpapan I've been trying to reproduce the "Could not find assembly x to add feature y" error, and I know at least one other user has mentioned seeing it, but I can't get it to happen for me locally. If you have steps to reproduce it I can investigate further. |
Contributor
Author
|
I wonder if all the issues I'm having is because of using a proxy...? |
Contributor
|
I doubt it's the proxy, the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


this is a defensive check to fix two issues that caused errors due to a sync and/or race condition between mongo and local storage
Error: Could not find assembly "68d645473455e153641748db" to add feature "68e7ad6ad1890725fdbfdab0"(when adding a feature to an assembly that it can't find in its local state)
and
Error: [mobx-state-tree] You are trying to read or write to an object that is no longer part of a state tree. (Object type: 'ApolloInternetAccount', Path upon death: '/internetAccounts/0', Subpath: '', Action: '/internetAccounts/0.postUserLocation()')(client-side state management)