vuefire icon indicating copy to clipboard operation
vuefire copied to clipboard

Global Binding

Open SKFrozenCloud opened this issue 4 years ago • 0 comments

What problem is this solving

I want to be able to dispatch bind once then if another page dispatches bind again it won't unbind -> bind -> refetch whole db. Check if state is already bound to not refetch whole DB each time I call bind (because I call it in another page in Nuxt JS).

Proposed solution

An option for the bindFirestoreRef() / bindFirebaseRef function that checks if already bound -> does nothing, otherwise bind as normal.

Describe alternatives you've considered

Some API method that returns if provided key has already been bounded. Then I can just write an if statement when binding.

SKFrozenCloud avatar Feb 08 '21 16:02 SKFrozenCloud