aribouius/jsonapi-react

Support for non-integer IDs

Closed this issue · 4 comments

Non integer IDs do not appear to get tracked as part of the cache and therefore use of useMutation treats these as create actions. This causes issues with UUID primary keys.

Is there some way to fix this in the schema or is this an underlying issue?

Thanks,

@aidandamerell hey thanks for reporting this. It looks like an underlying issue, but one that should be relatively easy to fix. Give me a day or two to patch it up!

@aribouius Awesome, thanks Ari! Great project btw!

@aidandamerell a patch for this is now available on version 0.0.16.

Relevant commit can be seen here.

Excellent work, thanks @aribouius!