How to use the serializr.update function in serializr

To help you get started, we’ve selected a few serializr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lennerd / git-for-beginners / src / tutorial.js View on Github external
transaction(() => {
  if (serializedTutorialState != null) {
    update(TutorialState, tutorialState, serializedTutorialState);
  }
});
github fluid-notion / fluid-outliner / core / views / models / RouteViewModel.ts View on Github external
public syncFromQuery(query = parseQuery()) {
        update(this, {
            rootNodeId: null,
            dialog: null,
            ...query,
        })
    }
github nathanstitt / mobx-decorated-models / lib / class-decorator.js View on Github external
update(json, callback) {
        return update(getDefaultModelSchema(this.constructor), this, json, callback);
    },
};
github pinqy520 / mobx-persist / lib / index.js View on Github external
.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;
github nathanstitt / mobx-decorated-models / dist / build.module.js View on Github external
update: function update$$1(json, callback) {
        return update(getDefaultModelSchema(this.constructor), this, json, callback);
    }
};
github pinqy520 / mobx-persist / src / index.ts View on Github external
(persisted: any) => {
                    if (persisted && typeof persisted === 'object') {
                        update(schema, store, persisted, null, customArgs)
                    }
                    mergeObservables(store, initialState)
                    return store
                }
            ))
github fluid-notion / fluid-outliner / core / views / models / RouteViewModel.ts View on Github external
public update(props: IRouteQueryParams) {
        update(this, props)
    }