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

Fix/hooked problems #1021

Merged
merged 6 commits into from
May 27, 2024
Merged

Fix/hooked problems #1021

merged 6 commits into from
May 27, 2024

Conversation

BeritJanssen
Copy link
Collaborator

@BeritJanssen BeritJanssen commented May 21, 2024

Close #1018, close #762 (again), close #1022.

@BeritJanssen BeritJanssen requested a review from Evert-R May 22, 2024 08:34
@BeritJanssen BeritJanssen self-assigned this May 22, 2024
Copy link
Contributor

@Evert-R Evert-R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issues in this PR are solved but now when running matching pairs or categorization the questionaire isn't shown and the experiment freezes. No error message just an empty screen.

no-questions

@BeritJanssen
Copy link
Collaborator Author

BeritJanssen commented May 27, 2024

Ah, thanks for catching that! Removing the await seemed to be without side effects for the experiments I tested, but I guess it's the culprit for breaking MatchingPairs and Categorization. The await was not the problem after all, good! That would have been much more tricky to deal with, I think.

@@ -23,7 +23,7 @@ const Trial = ({
}) => {
// Main component state
const [formActive, setFormActive] = useState(!config.listen_first);
const [preloadReady, setPreloadReady] = useState(!(playback?.ready_time));
const [preloadReady, setPreloadReady] = useState(false);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually this part which is problematic, as we don't have a setPreloadReady command in Trials without Playback.

@BeritJanssen BeritJanssen merged commit 3d249ca into develop May 27, 2024
10 checks passed
@BeritJanssen BeritJanssen deleted the fix/hooked-problems branch May 27, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants