delowardev / vue3-emoji-picker

Simple and Powerful Emoji Picker for Vue3
https://codesandbox.io/p/github/delowardev/vue3-emoji-picker/main?file=%2FREADME.md
MIT License
182 stars 36 forks source link

Need to separate and protect emoji store from outside access. #14

Closed delowardev closed 2 years ago

delowardev commented 2 years ago

Problem:

Suppose there are two emoji pickers is being used on one page. Now both pickers should have their store, but since both use the same object name and assign the store to the global object, the first store gets replaced by the 2nd store, and both use one single store. So if someone updates something in picker one, picker two will get the update.