LearnNewsExamplesServices
Frontmatter
id121
titleNew guide: component.Base: promise bulkConfigUpdate
stateClosed
labels
documentationenhancementstale
assignees[]
createdAtNov 28, 2019, 11:44 AM
updatedAtSep 29, 2024, 4:38 AM
githubUrlhttps://github.com/neomjs/neo/issues/121
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 29, 2024, 4:38 AM

New guide: component.Base: promise bulkConfigUpdate

Closed v7.9.1/archive-v7-9-1-chunk-1 documentationenhancementstale
tobiu
tobiu commented on Nov 28, 2019, 11:44 AM

this new feature is incredibly powerful and deserves its own guide.

in short: bulkConfigUpdate as a promise means:

  1. lock a component for vdom updates
  2. change all configs
  3. trigger all afterSetConfig methods (which can change the vdom)
  4. do 1 single post message from app => main => vdom worker
  5. get the delta updates
  6. vdom => main (apply the deltas to the real dom)
  7. wait until they got applied
  8. main => app (unlock the component) => resolve the promise
tobiu added the documentation label on Nov 28, 2019, 11:44 AM
tobiu added the enhancement label on Nov 28, 2019, 11:44 AM