pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

RTK errors are swallowed (no log, no report)

Open fregante opened this issue 3 years ago • 0 comments

Repro:

  1. Add throw new Error('TEST') to after the UUID line

    https://github.com/pixiebrix/pixiebrix-extension/blob/4061afede8e9e1a64a63ed438805ac94dd5df6ed/src/pageEditor/tabState/tabStateSlice.ts#L49-L54

  2. Open the console or background console

The error is never reported, it doesn't bubble up to the global handler nor there's any RTK-specific handler to catch it. It's completely hidden from the developer.

In this case it appears in the UI, but I suppose it might as well not:

Screen Shot

fregante avatar Oct 18 '22 07:10 fregante