Do you want to request a feature or report a bug?Bug
Note: This issue is probably related to #390 and #350 . Only difference is this issue takes into account the feedback from @dabit3 (writing your own query).
What is the current behavior?
If you try to delete an object and do so optimistically using the helpers there is an error with writeToStore.
writeToStore.js:154 Missing field title in {
"__typename": "Todo",
"id": "c42e71b2-3d66-4d5b-a334-880e9aad1b54",
"version": null
}
Same warning message shows up for every other field. If you refresh the app, the todo was successfully deleted. But there is no optimistic ui update. Meaning before the refresh the object is still showing.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Steps to Reproduce
Create a new React app: npx create-react-app my-app && cd my-app.
Do you want to request a feature or report a bug? Bug
Note: This issue is probably related to #390 and #350 . Only difference is this issue takes into account the feedback from @dabit3 (writing your own query).
What is the current behavior? If you try to delete an object and do so optimistically using the helpers there is an error with
writeToStore
.Same warning message shows up for every other field. If you refresh the app, the todo was successfully deleted. But there is no optimistic ui update. Meaning before the refresh the object is still showing.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Steps to Reproduce
npx create-react-app my-app && cd my-app
.amplify init
. Choose defaults.amplify add auth
and hit yes to all.amplify add api
and edit the schema like this:index.js
:App.js
:What is the expected behavior?
There should be no warning thrown and instead the UI should update automatically with a list without the deleted object.
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
Google Chrome on MacOS