Because I'm keeping this Appolo wrapper fairly generic, if I were to use multiple queries in my application, I would want the result of each one to update a different state.
But if I different parts of my application have their own queries and results, I think I would need to get the Query wrapper via a factory method that might do something like this.
I haven't tried this method yet, but it should make sure that each query doesn't override the state that another part of my application might be using.
If this is a multi-page routable application, I don't think it's much of a concern.
Glad you liked the post! Dojo is doing some very interesting stuff, in particular in their build pipeline that I think is really exciting!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because I'm keeping this Appolo wrapper fairly generic, if I were to use multiple queries in my application, I would want the result of each one to update a different
state.In my Query wrapper, I am creating a single
stateBut if I different parts of my application have their own queries and results, I think I would need to get the
Querywrapper via a factory method that might do something like this.I haven't tried this method yet, but it should make sure that each query doesn't override the state that another part of my application might be using.
If this is a multi-page routable application, I don't think it's much of a concern.
Glad you liked the post! Dojo is doing some very interesting stuff, in particular in their build pipeline that I think is really exciting!