Skip to content
New issue

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

[Bug]: List.removeAt doesn't work #883

Closed
Comanx opened this issue Sep 5, 2022 · 2 comments · Fixed by #884
Closed

[Bug]: List.removeAt doesn't work #883

Comanx opened this issue Sep 5, 2022 · 2 comments · Fixed by #884
Assignees

Comments

@Comanx
Copy link

Comanx commented Sep 5, 2022

What happened?

when use list.remove data cannot be deleted
data should be deleted.

Repro steps

FutureOr<void> removeCoordinatesImage(CoordPoint point, int index) async {
    var image = File(point.imagePaths[index]);
    if (image.existsSync()) image.delete();
    point.realm.write(() {
      point.imagePaths.removeAt(index);
    });
  }

imagePaths.length will not change
imagePaths type is List<String>

Version

0.4.0-beta

What Realm SDK flavor are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

Android 10

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

@nirinchev nirinchev changed the title [Bug]: [Bug]: List.removeAt doesn't work Sep 5, 2022
@nielsenko nielsenko mentioned this issue Sep 5, 2022
@nielsenko
Copy link
Contributor

Confirmed. I have fix brewing #884

@nielsenko
Copy link
Contributor

@Comanx The fix was just released with 0.5.0+beta

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants