hive icon indicating copy to clipboard operation
hive copied to clipboard

Exception when changing the typeId

Open hm122 opened this issue 3 years ago • 1 comments

Steps to Reproduce Change the typeId of an existing adapter from 1 to 2

Exception

Unhandled Exception: HiveError: Cannot read, unknown typeId: 43. Did you forget to register an adapter?

Never used the typeId: 43. When I remove the app and reinstall, everything works as it should. I made a few breaking changes in the model that is way I would like to change the typeId. Anyone facing the same issue? How is the default procedure when a model has breaking changes?

Version

  • Platform: iOS, Android
  • Flutter version: 2.10.4
  • Hive version: 2.1.0

hm122 avatar Apr 09 '22 14:04 hm122

check the conversation on #399

silverhairs avatar May 12 '22 14:05 silverhairs