Skip to content

iAPI: Review the initialization logic #70870

@DAreRodz

Description

@DAreRodz

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions