Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
transaction(() => {
if (serializedTutorialState != null) {
update(TutorialState, tutorialState, serializedTutorialState);
}
});
public syncFromQuery(query = parseQuery()) {
update(this, {
rootNodeId: null,
dialog: null,
...query,
})
}
update(json, callback) {
return update(getDefaultModelSchema(this.constructor), this, json, callback);
},
};
.then(mobx_1.action("[mobx-persist " + key + "] LOAD_DATA", function (persisted) {
if (persisted && typeof persisted === 'object') {
serializr_1.update(schema, store, persisted, null, customArgs);
}
merge_x_1.mergeObservables(store, initialState);
return store;
}));
promise.rehydrate = hydration;
update: function update$$1(json, callback) {
return update(getDefaultModelSchema(this.constructor), this, json, callback);
}
};
(persisted: any) => {
if (persisted && typeof persisted === 'object') {
update(schema, store, persisted, null, customArgs)
}
mergeObservables(store, initialState)
return store
}
))
public update(props: IRouteQueryParams) {
update(this, props)
}