Need advice: Is this the correct way to invalidate all providers using listen? #3782
Unanswered
thanhdatvo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I invented a way to invalidate all providers.
Firstly, I create a _resetProvider
Then I make responseProvider subscribe to this provider
And when user logs out, I could reset responseProvider with this
I want to hear your opinions on this approach.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions