Should we change the components management in JSON routes (and/or globally) #313
Replies: 5 comments 11 replies
|
This change could avoid problems in the future if we want to add other types even in JSON routes like the views. |
0 replies
|
You want it to change all components ? You think of allowing something like this ? return {
username: user.name,
type: user.role,
onUpdate: {
"_type": "listener",
action: "updateUser",
props: {
id: user.id
}
}
};
} |
2 replies
I think later we might have more. But for now it's just a reserved property that is handle by our system. |
1 reply
|
I don't see why we would need to change the |
6 replies
|
We can't change our votes, but with @shiipou comments the |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In JSON routes views, we can define listeners by specifying a JSON object corresponding to the next one anywhere in the tree:
{ "type": "listener", "action": "...", "props": { ... } }I think that it could be clearer and would avoid problems if we'd change the
typeproperty name to something specific.4 votes ·
All reactions