Closed negebauer closed 9 months ago
Hi!
How can I react to an error throw inside any subscription the store? For example if I have
store.on('key').subscribe(() => { throw new Error('foo') })
How could I capture that error? (not inside the subscribe code, but in general for the whole store)
There is no way to do this generically. You could wrap your code in a try/catch if you like.
Hi!
How can I react to an error throw inside any subscription the store? For example if I have
How could I capture that error? (not inside the subscribe code, but in general for the whole store)