-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve notes #2
Comments
Currently, I'm most partial to (1). I'm a bit skeptical of (3), as it seems like it's exposing essentially transient data to potentially persistent code, but maybe I'm thinking about it wrong. I'll take a look at the extras code.
Agreed. The only real consideration here is that, at some point in the near future, we're going to want to make the pipeline configurable as to whether the template should be rendered (empty) before the resolves (hence, the controller) are available.
Yeah, my thought on that was that the logic in
Yeah, that's pretty close to what I was thinking. Maybe something like
I'd rather rip it all apart now if possible, and do away with locals entirely. I think the only question is around figuring out how to coordinate that with
What would be the use case for per-level blocking? |
I was thinking along the lines of some level of the chain wanting to reject the transition. Let's say there is a transition from Upon further thought, this same behavior can be attained by simply injecting a rejected resolve from |
except that you'd have to inject the |
I don't understand this; what's the use case for rendering a template before the resolves?
Edit: Ah, I think you're responding to my comment:
Yeah I think we're thinking along similar lines. I might have some time this weekend to do some coding.
Cool |
If an
UX & mobile-first guys talk about rendering the structure of a page immediately, then filling in content as it becomes available. Facebook is actually a pretty good demonstration of this. When you first load it up, you see empty story cards with placeholders for photos and text, which fill in a moment later. |
So, if I understand you correctly, you do want all of A.B resolves to load before resolving items on A.B.C and A.B.C.D? This is the behavior I meant by "resolves ALL of a path element before proceeding to the next path element". The other option would be to eager load any resolve that has all its deps satisfied. A more concrete example might be:
In this example, one of the resolves depend on the other resolves, only on state params. When we transition from root to We can either:
Gotcha. |
Ah, sorry for not being clear. What I actually meant was, a resolve should never be loaded unless it's depended on by an injectable function. I inferred 'listener' to mean an Hope that makes sense. |
That seems to violate "least astonishment" for me. When I add a resolve for a state, I expect it to be resolved when I enter that state, full stop. I've got some code started (WIP) that could support your use case, however. I'll commit to a branch for you to check out. Let me know if this is along the lines of what you're thinking. |
It's super duper lazy now. |
|
Options:
Resolve process
$view resolves
paths
incremental
We should be able to handle most of this by carefully constructing the resolve chains, then operating on a per-path-element or whole path basis when resolving and triggering the $view service.
That's all I can muster for now; it's been another long-ass day 👎
The text was updated successfully, but these errors were encountered: