prescottprue / redux-firestore

Redux bindings for Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dispatch({ type: actionTypes.CLEAR_DATA }) does not clear 'queries' and 'composite'

benomatis opened this issue · comments

While 'data' and 'ordered' do clear, 'queries' and 'composite' (both contain actual data) remain using dispatch({ type: actionTypes.CLEAR_DATA }) and even after unsetting all listeners.

I found no way to clear them other than reloading the page - not very elegant.

I tested the fix I introduced in PR #421 but it's not actually working - I don't understand the code enough to be able to know why, so if anyone interested in having this solved, and can help fixing it, I'd be happy to get corrected. Thanks.

I tested the fix I introduced in PR #421 but it's not actually working - I don't understand the code enough to be able to know why, so if anyone interested in having this solved, and can help fixing it, I'd be happy to get corrected. Thanks.

It's working now - I forgot to build the package.