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

Hive.deleter(key) Does not delete over relaunches #26

Closed
haroldolivieri opened this issue Aug 30, 2019 · 3 comments
Closed

Hive.deleter(key) Does not delete over relaunches #26

haroldolivieri opened this issue Aug 30, 2019 · 3 comments

Comments

@haroldolivieri
Copy link

Calling Hive.delete(key)deletes the key when app is in use and keep working normally for changes on the box, but after killing and launching again Hive always fetches the last state before the key deletion.

Open app first time

  • Save value ["123"] into key
  • Save value ["1234"] into key
  • Fetch box.get(key) -> ["123", "1234"]
  • Call Hive.delete(key)
  • Fetch box.get(key) -> []

Kill app

Relaunch app

  • Fetch box.get(key) -> ["123", "1234"] // should be []
@simc
Copy link
Member

simc commented Aug 30, 2019

@haroldolivieri

Thanks for reporting. I'll investigate that.

Which version of Hive and which device are you using?

@simc
Copy link
Member

simc commented Aug 30, 2019

I can reproduce the issue and I will fix it with the next version.

@simc
Copy link
Member

simc commented Aug 30, 2019

This is fixed in v0.5.0 but you'll need to clear the cache of your app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants