- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.5k
fix(devtools): fix restore/trigger loading cond #6010
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
fix(devtools): fix restore/trigger loading cond #6010
Conversation
| The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
 | 
| ☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1403984. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. | 
| This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1403984: 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I now click trigger loading, it doesn't change to restore loading either.
not sure why, maybe that state isn't what we're actually looking for 🤷
@ardeora might be able to help here. Also, we're still missing the tests for the devtools from v4. @ardeora I could start adding them for the react adapter, but I think most tests should actually be for the agnostic query-devtools package, right? So I'd need to see one or two examples to get this going because I've never written a test in solid 😬
| hmm that's weird, I'll have a closer look again to see if I can find the real state | 
| @TkDodo I think it should work as expected now | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good! I can see the expected behavior here. One thing that could also be addressed in this PR maybe that when Trigger loading is clicked. We should disable Trigger Error button? Ideally we should be able to trigger an Error while in loading state, but currently seems way more complex to achieve this
| 
 I have been trying to add the tests. The only issue currently I'm stuck on is we use the  | 
| 
 yes, I'll disable to the button while in loading state | 
| looks good, but please also disable the  | 
| @TkDodo fixed | 
This PR fix the button trigger loading state
closes #5959