FanvidDB / fanviddb-server

Server of the fanviddb
Other
0 stars 1 forks source link

Handle "aborted" requests for forms #97

Closed sandalwoodbox closed 1 year ago

sandalwoodbox commented 1 year ago

Fetch requests can be aborted, for example due to network issues. We should handle this case on our forms; otherwise user edits will be lost because they'll get stuck & unable to proceed. It can be mocked with jest-fetch-mock: https://www.npmjs.com/package/jest-fetch-mock#mocking-aborted-fetches

sandalwoodbox commented 1 year ago

might make sense to standardize form handling a little bit to cover this automatically.