Using TanStack DB with server-generated IDs #568
-
Is there an example on using on using TanStack DB with server-generated IDs? What's the best practice for merging fields generated by the server on entity creation, e.g., |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's no merging process — the optimistic state just gets dropped when the server response returns. This is a brainstorm on a way to improve this #19 If you need stable keys for now, you can either generate UUIDs on the client which the server uses or maintain mapping in your client between the client & server data for a homespun viewkey |
Beta Was this translation helpful? Give feedback.
There's no merging process — the optimistic state just gets dropped when the server response returns. This is a brainstorm on a way to improve this #19
If you need stable keys for now, you can either generate UUIDs on the client which the server uses or maintain mapping in your client between the client & server data for a homespun viewkey