How to create mutable objects? #5210
Unanswered
Shreehar01
asked this question in
Community Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The openmct API documentation mentions that "object providers will support other methods to enable other operations with persistence stores, such as creating, updating, and deleting objects." Is there any other way, for now, we can create a mutable object?
I am seeing the error:
Uncaught (in promise) Error: Attempted to mutate immutable object Overview openmct.js:329:582425
The use of GetMutable() for my object from the object provider instead of just Get() also throws an error:
Uncaught (in promise) Error: Object "tbc.loop:vehicles" does not support mutation.
When I look into their code for the Object in the github, it decides if an object is mutable or immutable based on if it has create and update functions. However, in the absence of create and update functions for the time being (as mentioned above and in the documentation), how can I create a mutable object to eliminate the errors I am receiving?
Beta Was this translation helpful? Give feedback.
All reactions