-
Notifications
You must be signed in to change notification settings - Fork 30
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
Navigating from classifier, to project home, back to classifier - task component not rendered #2891
Comments
Did a little debugging on this. This only happens when navigating away from and back to the same workflow. On projects with multiple workflows, choosing a new workflow after navigating to the homepage will successfully load the Task Area. The task components are showing an error because the SubjectStore does not have an front-end-monorepo/packages/lib-classifier/src/components/Classifier/ClassifierContainer.js Line 89 in 620f53f
^^ After that line is called in the ClassifierContainer, the SubjectStore properties I mentioned are empty, and there's no follow up function called to fetch new subjects. There was a significant refactor of this file in #2793, so I'm going to tag @eatyourgreens here for visibility. |
Thanks! That's really useful. The classifier store is a global variable, defined in the I thought resetting the queue would force a refresh from Panoptes, but obviously not. The subjects store doesn't work the way I thought it did. |
I've got some changes to |
Global variables can be tricky to debug, but this bug is triggering when the classifier is mounted with |
For easier debugging, you can also trigger this bug by toggling 'Cache Panoptes Data' in the dev classifier, which avoids having to rebuild Screen.Recording.2022-02-25.at.07.48.56.mov |
Linking #2141 for context. That's the PR where I added the global store. |
#2895 should fix this. I'm not seeing it happen on I Fancy Cats, in the dev classifier, any more. |
The bug was introduced by |
Package
Describe the bug
Task area renders "Task component could not be rendered."
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Classifier loads with tasks.
The text was updated successfully, but these errors were encountered: