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
Since the JSON view is almost available an ship with server side route system, we can now implement a navigation system for the lenra view.
I've thinking about using the react-router system and take inspiration from it.
On the manifest, we could do something like that :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Since the JSON view is almost available an ship with server side route system, we can now implement a navigation system for the lenra view.
I've thinking about using the react-router system and take inspiration from it.
On the manifest, we could do something like that :
{ "lenraRoutes": { "/": { "widget": {"type": "widget", "name": "main"} "children": { "todos/:id": { "widget": {"type": "widget", "name": "taskCard"} } } } } }Then the main widget :
And the taskList widget
The
outletwidget just print whatever child path is matching.taskListand an emptyoutlet.linkwidget change the navigation to "/todos/:id"taskListand theoutletthat now load thetaskCardwidget.If you have any other idea, please share :)
All reactions