-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I noticed this one line required a fair bit of explanation in the tutorial:
@props.app-state.get \state.queryI think part of the reason is the state. prefix is passed in as a parameter when it's really a mandatory part of the API for fetching state. It may be useful to have an additional function, get-state, which simply assumes the state. prefix. For example:
@props.app-state.get-state \queryThis wouldn't replace the more general purpose get function, but would allow users of the framework to put off learning more about Arch's internals until they're doing non-trivial things with it.
Then there's one other change I'd like to request. I'm not sure if it's too far into Arch's development to change this, but what would you think about renaming app-state to just app?
@props.app.get-state \queryI believe I understand the reason for calling it app-state - it does contain state other than component state. At the same time though, state has become synonymous with component state in the React world, so I fear using the word (even appropriately) to describe other kinds of state will inevitably cause confusion for newcomers to the framework.
What are your thoughts?