You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: TypeError: Attempted to assign to readonly property When Deleting Records on iOS
WatermelonDB version: 0.27.1
React Native version: 0.71.0
Description
When attempting to delete records from certain tables in WatermelonDB, I encounter the following error on iOS:
The deletion logic is as follows:
staticasyncdeleteMedia(mediaId: string){try{returnawaitdatabase.write(async()=>{constmedia=awaitdatabase.collections.get(WorkspacePhotoModel.table).find(mediaId);constpreparedDelete=media.prepareMarkAsDeleted();awaitdatabase.batch(preparedDelete);});}catch(error){console.error('Error in deleteMedia',error);throwerror;}}
The text was updated successfully, but these errors were encountered:
Issue:
TypeError: Attempted to assign to readonly property
When Deleting Records on iOSDescription
When attempting to delete records from certain tables in WatermelonDB, I encounter the following error on iOS:
The deletion logic is as follows:
The text was updated successfully, but these errors were encountered: