alan2207 / react-query-auth

⚛️ Authenticate your react applications easily with react-query.
MIT License
363 stars 43 forks source link

Setting up default react-query options for loadUser() query #11

Closed morismoze closed 1 year ago

morismoze commented 2 years ago

Hi @alan2207,

It would be great if react-query-auth provided some props for setting react-query options for this particular query loadUser(). The problem is, on every tab/window refocus abovementioned function is called and logically speaking that is not necessary. Shouldn' t be loadUser() called by the developer when user data is needed?

alan2207 commented 1 year ago

Check the latest version, which allows more control over the user query.