isar / isar/hive

Private list property is empty when hot restart the app when using with keyword.

Open
#959 0 comments 0 reactions 0 assignees View on GitHub
problem
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Steps to Reproduce**
My class is like below.
```dart
class A with B, C, D { }
```
When i use private list properties in class B, hive works fine and put data to the box but when I hot restart the app hive gives me empty list.

For example I changed _listProperty to listProperty, hive worked right.

**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: 1.1.0
- Hive version: 2.1.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the hot-restart behavior with class A using mixins B, C, and D, and a private list property in B. Check whether data written to the Hive box is restored after restart; done means the private list is no longer empty, with a regression test covering this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.