mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat(subscription): invalidate subscription cache
This commit is contained in:
@@ -23,6 +23,9 @@ export function DashboardSockets() {
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
});
|
||||
socket.current.on('SUBSCRIPTION_CHANGED', () => {
|
||||
client.invalidateQueries('GetSubscriptions');
|
||||
});
|
||||
return () => {
|
||||
socket.current.removeAllListeners();
|
||||
socket.current.close();
|
||||
|
||||
Reference in New Issue
Block a user