I am seeing the benefit of redux-tiles but I would like some clarification on how to best interact between "plural" and "singular" tiles for the same resource type.
Suppose you want to provide a list of posts for the user. You would create an async tile, posts that can get all posts
The second tile is probably closer to what I actually want, but using the second one I am unable to fetch ALL posts at the same time.
From my components I would like to be able to select either all posts, or a single post depending on my needs, but I can't see a simple way to do this using a single tile.
A possible workaround would be to create a synchronous tile that stores the data, as well as 2 async tiles like the ones above that only put the data into the synchronous tile, something like this
I am seeing the benefit of redux-tiles but I would like some clarification on how to best interact between "plural" and "singular" tiles for the same resource type.
Suppose you want to provide a list of posts for the user. You would create an async tile,
posts
that can get all postsNow I also want to allow interacting with posts individually. Therefore I would want to create an async tile for that:
The second tile is probably closer to what I actually want, but using the second one I am unable to fetch ALL posts at the same time.
From my components I would like to be able to select either all posts, or a single post depending on my needs, but I can't see a simple way to do this using a single tile.
A possible workaround would be to create a synchronous tile that stores the data, as well as 2 async tiles like the ones above that only put the data into the synchronous tile, something like this
But I'm already trying to avoid this boilerplate by using tiles, and it seems like this method is just reintroducing some of that boilerplate code.
@Bloomca If you have any suggestions, I'd be happy to hear. Thanks!