[Refactor] Simplify actions dispatching in front-end code
Author: FabienLelaquaisCreated Mar 6, 2026Updated Aug 5, 2026
Labels📈 Improvement
Description
Updating a variable ('Update') or triggering a callback ('ActionName') requires the React component to create two hooks (Dispatch and Module), them create the Action object (create*Action) then dispatch. These two basic front-end operation are so common that it would be wise to simplify their API, at least for extension library coders.
A proposal would be to create a 'Actions' hooks that would return a 'sendAction' and a 'sendUpdate' pair of functions that would encapsulate most of the legacy API complexity. These would rely on the legacy API that would not be modified.
Code of Conduct
- I have checked the existing issues to avoid duplicates.
- I am willing to work on this issue (optional)
✅ Acceptance Criteria
- The refactored code maintains existing functionality without breaking changes.
- Any new code is covered by unit tests.
- Code coverage remains at least 90%.
- Performance improvements are documented, if applicable.
Source: Avaiga/taipy