Custom entity key support in withEntityResources #293
Unanswered
sebastienbruno
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Custom entity key support in
withEntityResourcesContext
I'm currently using
withEntityResources()(named resources) and I'm really enjoying the DX it provides — automatic entity derivation from resource arrays with zero boilerplate.However, I've run into a design question I'd love to get the team's perspective on.
The question
withEntities()supports a customselectIdthrough its entity config:Is something equivalent planned or possible for
withEntityResources()? As far as I can tell, the current implementation assumes the entity key is alwaysid, which means entities with a different primary key (e.g.uuid,todoId) require a workaround.Beta Was this translation helpful? Give feedback.
All reactions