-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Motivation
This library currently provides the implicitMode library option, which is set during library initialization. It can be the 'path' or 'hash' string values, and generally speaking, this option exists for simpler projects that don't need the complexities of multiple and simultaneous routing universes.
However, the more complex projects that want to benefit from this, especially micro-frontend projects, are then forced to always set the hash property everywhere, whose value is later defined by its consuming parent.
Proposal
Deprecate (and promptly eliminate) the implicitMode library option in favor of a new one: defaultHash. The type of this new property will be Hash, just like all hash properties in components. This way, complex projects like micro-frontends can be told the assigned hash value (false, true or a named path) and then these projects casn use defaultHash to set the assigned hash value project-wide, freeing developers to forcefully and explicitly set it in every component.
Its default value will be false, which is the hash value that signals path routing, and is therefore backwards compatible with what implicitMode does today.