UNPKG

@dark-engine/core

Version:

The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)

20 lines (19 loc) 632 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.useUpdate = exports.createUpdate = void 0; const internal_1 = require('../internal'); const workloop_1 = require('../workloop'); Object.defineProperty(exports, 'createUpdate', { enumerable: true, get: function () { return workloop_1.createUpdate; }, }); const scope_1 = require('../scope'); function useUpdate() { const rootId = (0, scope_1.getRootId)(); const cursor = (0, internal_1.__useCursor)(); return (0, workloop_1.createUpdate)(rootId, cursor.hook); } exports.useUpdate = useUpdate; //# sourceMappingURL=use-update.js.map