-
Notifications
You must be signed in to change notification settings - Fork 14
consistent name/semantics/syntax for all handlers #243
Comments
FYI... even though while_loading is a hyper-model feature, i think the basic mechanism belongs here.
The name is the name (like You can then someplace else do a maybe... might not work nicely for error, I don't know... but seems like we can reuse most of the mechanism used by error, and extend it so its more of a general catch/throw mechanism |
For clarification:
|
there are three "modifiers" when a component is mounted:
on(...)
while_loading
after_error
(proposed, but will probably be added in 1.0)A proposal is to make these consistent like this:
on(...)
where there are two (currently) special events::loading
, and:error
.part two would be to add a new
on
callback which would apply these handlers to the component as a whole... so the above could be rewritten as:or even
regardless of the specific syntax, we should allow these modifiers consistently to be used either inside a components render method using the
.xxx
notation, or to be applied to the whole component using a callback.We need this because we have the
render(ComponentName) do ... end
syntax which precludes using the.xxx
notation.The text was updated successfully, but these errors were encountered: