I wanted to confirm the following:
Before I call the WL.JSONStore.init method on a collection, must I first call the removeCollection method?
Can I call the WL.JSONstore.init method on the same collection without getting side effects such as duplicate collections in the device's native DB?
Can the WL.JSONStore.init method be thought of as a singleton method basically letting the existing collection/device's native db be ready to accept new record updates for that already existing collection?
If you want to remove the contents of a collection: init(collection1) -> removeCollection(collection1) -> init(collection1).
Correct. You can do: init(collection1) -> init(collection1) -> init(collection1) -> ... without any negative side-effects.
Yes.
Note: One common issue is that the search fields are not dynamic, you must call the removeCollection API first if you want to init with new search fields or additional search fields.