We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a message object in the table messages Its contents.0.items was initially an empty array
messages
contents.0.items
Execute this:
await db.messages.update('<messageId>', { 'contents.0.items': add([item]) })
It works fine. The item has been added.
It also triggers sync at the same time, with payload:
Bug when receiving the response:
{ "changes": [ { "table": "messages", "muts": [ { "type": "update", "keys": [ "1idrbrtjc4945r8qqo" ], "changeSpecs": [ { "contents": [ { "text": "testttttttttttttttttt", "type": "user-message", "items": { "add": [ { "id": "1idrc693r4945r9p5h", "type": "quote", "name": "用户消息引用 (16)", "contentText": "sttttttttttttttt" } ] } } ] } ], "txid": "R4ROwJy+lHROKdmK50lbFw==" } ] } ], "rejections": [], // ... }
The message changed again, and content.0.items became a object with property add: This is not an expected behavior. I guess it is a bug of dexie-cloud
content.0.items
add
I'm using [email protected] and [email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction
There is a message object in the table
messages
Its
contents.0.items
was initially an empty arrayExecute this:
It works fine. The item has been added.
It also triggers sync at the same time, with payload:
Bug when receiving the response:
The message changed again, and
content.0.items
became a object with propertyadd
:This is not an expected behavior. I guess it is a bug of dexie-cloud
I'm using [email protected] and [email protected]
The text was updated successfully, but these errors were encountered: