You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mini website showing the example has keeps a bijection between URL and active example, it's a bit of a crude implementation but it works. There is definitely room for standardization here, and unlike the Future → Rx thing, router require non trivial amount of engineering.
The text was updated successfully, but these errors were encountered:
I've been working on a simple Router (referenced in #77), which may be good enough for me (and may not be also - we shall see). Which router implementation are you referring to when you say Future → Rx (assuming there's a concrete example somewhere that I missed)?
I sort of like how this style of router (which can likely be simplified) can easily be plugged into a component (see below), since it has its own isolated view. The component's view just becomes the router's view, so the router is simply used as a light formalism. Not much to it - monadic-html does all the hard work.
Components are also a fairly light formalism, for example:
sealedabstractclassAbstractComponent[D](view: Node, model: Rx[D])
caseclassComponent[D](view: Node, model: Rx[D]) extendsAbstractComponent[D](view, model)
/** * TaggedComponent is useful for updating a collection of components where one would want to * sometimes alter Component[D] based on input data of type T*/caseclassTaggedComponent[D,T](view: Node, model: Rx[D], tag: T) extendsAbstractComponent[D](view, model)
The mini website showing the example has keeps a bijection between URL and active example, it's a bit of a crude implementation but it works. There is definitely room for standardization here, and unlike the
Future
→Rx
thing, router require non trivial amount of engineering.The text was updated successfully, but these errors were encountered: