Test Scenario Editor: Manage @kie-tools/scesim-editor
's state with Zustand + Immer
#1463
Labels
area:test-scenario
Related to Test Scenario (scesim)
area:tools
Issues affecting Apache KIE tooling projects
type:new-feature
Something is missing, we need to build it!
The current Test Scenario Editor prototype relies on a plain
useState()
to hold the editor state.In the same way we managed DMN and BPMN editors, To store ’s state, we’ll follow ReactFlow’s recommendation and use Zustand + Immer. Zustand provides a global, very capable store mechanism to centralize the component’s state, while Immer makes it much easier to update deeply nested objects. The ’s internal state will be held in a single, Immer-enabled Zustand store, with a debouncing mechanism to batch
onModelChange
callbacks, making the component behave like a Controlled Component, while still having control over when to notify that its state changed.The text was updated successfully, but these errors were encountered: