Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAL-4351] [Platform][Atoms][Hooks] hooks are triggered before http client is init #16675

Open
ThyMinimalDev opened this issue Sep 17, 2024 · 0 comments
Assignees
Labels
⚛️ atoms Created by Linear-GitHub Sync 🐛 bug Something isn't working Low priority Created by Linear-GitHub Sync platform Anything related to our platform plan

Comments

@ThyMinimalDev
Copy link
Contributor

ThyMinimalDev commented Sep 17, 2024

some platform atom hooks are triggered before axios http client base url is set, use react-query enabled setting prop to make sure hooks are not triggered before the http client is initialized

image (1).png

since the hook is triggered before http client base url is set, it's calling the wrong domain as shown in screenshot

From SyncLinear.com | CAL-4351

@ThyMinimalDev ThyMinimalDev added Low priority Created by Linear-GitHub Sync platform Anything related to our platform plan ⚛️ atoms Created by Linear-GitHub Sync labels Sep 17, 2024
@dosubot dosubot bot added the 🐛 bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚛️ atoms Created by Linear-GitHub Sync 🐛 bug Something isn't working Low priority Created by Linear-GitHub Sync platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants