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. |
Beta Was this translation helpful? Give feedback.
-
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
}
}
};
} |
Beta Was this translation helpful? Give feedback.
-
I think later we might have more. But for now it's just a reserved property that is handle by our system. |
Beta Was this translation helpful? Give feedback.
-
I don't see why we would need to change the |
Beta Was this translation helpful? Give feedback.
-
We can't change our votes, but with @shiipou comments the |
Beta Was this translation helpful? Give feedback.
-
In JSON routes views, we can define listeners by specifying a JSON object corresponding to the next one anywhere in the tree:
I think that it could be clearer and would avoid problems if we'd change the
type
property name to something specific.4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions