Skip to content

Is it possible to call useIdleTimer with same name multiple times? #270

Discussion options

You must be logged in to vote

Hey @tuhin-tsm!

IdleTimer exposes the underlying messaging channel for you to use how ever you like. You can find the relevant docs here:

https://idletimer.dev/docs/getting-started/new#cross-tab-messaging

Maybe you can take advantage of the IdleTimerProvider to avoid the need for drilling props, but it sounds like you might have an inversion of control issue. Could you share a little code to help me understand your set up?

Here are the docs for the Provider:

https://idletimer.dev/docs/api/idle-timer-provider

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tuhin-tsm
Comment options

@SupremeTechnopriest
Comment options

Answer selected by SupremeTechnopriest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants