pablobm left a comment (openstreetmap/openstreetmap-website#6422)
Looking at how this works currently, with view to creating a descriptive issue.
Is my understanding below correct?
The interface is glued together by the router, which handles page loads (full
or pushState). This is similar to how libraries like Sammy.js or Davies.js used
to do it back at the time when this was built.
Each route handles a module (eg: `index/new_note.js`) which does a lot of
JS-based heavy lifting, handling state, interacting with the API and rendering
results on the appropriate panel.
Ideally this should be converted to use Hotwire. Rather than a big bang
rewrite, we might be able to convert each individual route separately (eg:
`NewNote`) and only remove the router at the end, if everything has indeed been
converted.
Does that sound right?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6422#issuecomment-3455890287
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/6422/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev