use-detect-print icon indicating copy to clipboard operation
use-detect-print copied to clipboard

Doesn't work correctly with window.print()

Open russellrain opened this issue 3 years ago • 1 comments

When triggering with window.print() instead of printing using hotkeys or File > Print, this doesn't update the status state in time

russellrain avatar May 19 '21 21:05 russellrain

I created a package which solves this. But the side effect the change is visible on screen while print is happening through window.print() : https://github.com/geongeorge/react-use-print

Live demo: https://codesandbox.io/p/sandbox/determined-benz-4mnj6h

geongeorge avatar Nov 25 '23 07:11 geongeorge