#ionic #vue #javascript
We are using searchPreference to store the preference for the user mainly when user performs search operation and wants to store the same for the future use, like for example when applying filters on a page and then searching a product with those filters, and if the user saves this search combination for future use then we store this in searchPreference.
Along with creating search preference, user search preference is also created.
User search preference associates search preference with the user
Also, we could share the search preference value in an array which is serialized by stringifying it. Recommended way would be to use the JSON.stringify() method.
Created by : Azkya Khan
LinkedIn : / azkya-khan-8747171a2