-
Notifications
You must be signed in to change notification settings - Fork 4.8k
iAPI: Review the initialization logic #70870
Copy link
Copy link
Closed
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Package] Interactivity/packages/interactivity/packages/interactivity[Package] Interactivity Router/packages/interactivity-router/packages/interactivity-router[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Package] Interactivity/packages/interactivity/packages/interactivity[Package] Interactivity Router/packages/interactivity-router/packages/interactivity-router[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this address?
Currently, the Interactivity API initialization relies on the correct order of modules to function as intended. All modules that register a store should be evaluated before the hydration process begins. Similarly, the Interactivity API Router depends on the initial page to be hydrated beforehand; it fails if the module is enqueued directly.
What is your proposed solution?
We need to ensure everything works okay without having to rely on the order or the order these modules are enqueued or imported.