Storage Plugin: migrate()
- When/Where to use?
#5129
-
I am unsure what it means by "...call migrate() before any other methods." Does this mean that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Should be called before you want to read values from storage. It really only needs to run once, but nothing happens if you run it every make code simpler, if not you’ll have to store some value to know that you already migrated. |
Beta Was this translation helpful? Give feedback.
Should be called before you want to read values from storage. It really only needs to run once, but nothing happens if you run it every make code simpler, if not you’ll have to store some value to know that you already migrated.
Also, there is a function to delete the migrated values, because if you don’t delete them and delete the migrated value it will re appear.
The migration is only needed for iOS and web, on android nothing changed.