Open
Description
Description
When using ui-components-horizontal-slider-js
with recommend-js
and both libraries are loaded in UMD, they both import their own bundled version of Preact. Even if the version is the same, the fact that each function uses a different instance of Preact breaks the app.
Reproduction
Steps
- Visit the sandbox
- See the runtime error
Expected behavior
The app should run normally.
Suggested fix
If recommend-js
was providing createElement
and Fragment
in view
and that ui-components-horizontal-slider-js
accepted a renderer (like autocomplete-js
) we could bind the same instance of Preact, which should work.
Environment
- OS: macOS Monterey 12.3.1
- Browser: Firefox 99.0.1
- Library version: @algolia/ui-components-horizontal-slider-js 1.0.0 / @algolia/recommend-js 1.3.0
Metadata
Metadata
Assignees
Labels
No labels