Losing observers on hot reload
Hi, been using RQ on numerous projects over the years and love it. However I'm currently losing my mind looking at something that doesn't seem too complex and yet its not acting how I'm expecting.
Am using RQ to store a JWT token that needs refreshing periodically (using refetchInterval). If the token is not present then I clear the rest of the session and show a login screen. This all works fine in production.
Whilst devving though if I make any code change that triggers a hot reload. The devtools still show that data is present. (It even continues to refetch the token in the background) however the observer count drops to 0 and I can't quite understand why.

2 Replies
stormy-goldOP•12mo ago
This is after an unrelated code change (adding a full stop in a console log). As you can see the observer count has dropped to 0, however the data is still there and being updated in the background according to the refetchInterval

stormy-goldOP•12mo ago
This is being used inside a react-native app using version 5.56.2