I tryed defold router but i don’t like how it works.So i implement my own library with the same idea.For now it contains less functions then defold router.
The main differences:
use msg.post() to change scene instead of lua module.
logs to console when changing scene
no save states(I think if scene need save state, scene should do it by itself)
It’s great that my library inspires other people to do something similar. Routing/navigation is something that Defold lacks and some people struggle with implementing it.
Actually, with my library scene changes also happen with messages Lua module just provides a convenient way to do it — no need to remember URLs, message names and parameters.
For me then main problem in your library that i need to have router_object, to change scene. So i can change scene only in scene controller. Also you send router_object by msg.post, so every receiver get copy of that object. And it is additional work of copy and serialization object, which can be avoid.