mariner icon indicating copy to clipboard operation
mariner copied to clipboard

Keep state centralized in a store

Open luizribeiro opened this issue 4 years ago • 0 comments

Right now we can't check the print status from anywhere other than the PrintStatus component.

This means we can't block Print buttons from being clicked when there is an in-progress print, for example.

Another advantage is that switching between tabs on the app wouldn't trigger a loading spinner every time.

Redux would likely be overkill here, so maybe something like react-easy-state would be sufficient to keep this global state.

luizribeiro avatar Sep 27 '20 13:09 luizribeiro