-
Notifications
You must be signed in to change notification settings - Fork 45
Use auto generated id variable in optimistic response rather than Client:xxxxx #75
Comments
I love this idea! Really really useful feedback. Does having
From my side this should be done like this from the first place, but at the time we wrote it we did not had typeName information inside the core. WDYT? |
Of course no, greeing.id should be the id set by variables.id ,,, this fixes the issue Reproduce Assume that we have the below scenario (it's a real scenario) . STEP 1 create a location while offline:
STEP 2 creating a condition while offline
Currently, I'm using mongodb which uses ObjectId as default primary key.... . So, I'm expecting item object should be stored as =>
id is equivalent to variables.id rather than
|
Awesome.
Yes. Now I fully understand what we mean here. Yes. We should resolve this problem |
Passing Id is now possible thru the client (both by data or using your own optimistic response creator. Thank you for logging issue |
Is it possible to use the variable id (which is auto-generated on client-side) in optimistic response rather than "client:xxxxxx".
In case of nested data, this approach will cause an issues. Then, my solution is always to generate an id on client side and offix should accept this variable.
The text was updated successfully, but these errors were encountered: