UNPKG

@ui-schema/react

Version:

Schema-driven UI generator for React using JSON Schema. Build powerful form and interface generators with headless components and hooks.

10 lines (9 loc) 385 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateStoreScope = void 0; var _UIStore = require("@ui-schema/react/UIStore"); var updateStoreScope = exports.updateStoreScope = function updateStoreScope(store, scope, storeKeys, newValue) { return store.setIn(storeKeys.size ? (0, _UIStore.prependKey)(storeKeys, scope) : [scope], newValue); };