NEARBuilders / near-bos-webcomponent

Embed NEAR BOS content as a web component
The Unlicense
13 stars 6 forks source link

POC: Moving redirectMap + hot reload to custom element #34

Closed elliotBraem closed 4 months ago

elliotBraem commented 5 months ago

-- DO NOT MERGE --

This is a proof of concept of moving the redirect map and hot reload functionality to a custom element -- then this custom element is used to provide the redirect map to an app.

Option 1

Custom element provides redirect map to the Widget, widget passes it through config to children

https://github.com/NEARBuilders/near-bos-webcomponent/assets/16282460/37681842-6aeb-470b-a4ac-8577556ce603

hot reload still does not work

Option 2

Custom element takes an "index" src, and handles the rendering for <Widget inside with redirect Map

https://github.com/NEARBuilders/near-bos-webcomponent/assets/16282460/27380e3d-edba-452c-b276-e4b681f4baeb

hot reload still does not work

elliotBraem commented 4 months ago

Not practical, closing