daily-code icon indicating copy to clipboard operation
daily-code copied to clipboard

Refactor Print component to use useRouter hook and add delay before printing

Open impruthvi opened this issue 3 months ago • 4 comments

In the local environment, the print function is not working; it directly redirects to the main screen, and the print page is blank. Therefore, I added a delay, and after printing, I closed the current tab.

impruthvi avatar Mar 24 '24 16:03 impruthvi

bhai but don't you think this could introduce some other problems? Like what if pdf took more than 1s to load?

devsargam avatar Mar 24 '24 19:03 devsargam

bhai but don't you think this could introduce some other problems? Like what if pdf took more than 1s to load?

Yes, you are right for that. Now, I added an afterprint listener.

impruthvi avatar Mar 25 '24 03:03 impruthvi

Sorry seems like there are merge conflicts

hkirat avatar Apr 07 '24 22:04 hkirat

@hkirat resolved conflict

impruthvi avatar Apr 08 '24 03:04 impruthvi

.bounty $5

hkirat avatar Apr 21 '24 20:04 hkirat