Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
The usePlayers sometimes returns undefined, while it shouldn't. usePlayer and useGame, at the same time, are returning something. In no circumstance should usePlayers be undefined while the others are defined. It seems that it's a loading issue. If you check for undefined, and wait shortly, it will become available relatively quickly.
Steps To Reproduce
Reload the experiment in the middle of a stage and use usePlayers, and it's sometimes undefined
Empirica Version
1.8.9
What OS are you seeing the problem on?
No response
What browser are you seeing the problem on?
No response
Relevant log output
No response
Anything else?
It's likely waiting to have all the players loaded to return anything. Question is:
do we return before all players have loaded (partial list inside usePlayers)
do we wait to have all players loaded before we allow the app to render (probably preferable)
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
What happened?
The
usePlayers
sometimes returns undefined, while it shouldn't.usePlayer
anduseGame
, at the same time, are returning something. In no circumstance shouldusePlayers
be undefined while the others are defined. It seems that it's a loading issue. If you check for undefined, and wait shortly, it will become available relatively quickly.Steps To Reproduce
usePlayers
, and it's sometimes undefinedEmpirica Version
What OS are you seeing the problem on?
No response
What browser are you seeing the problem on?
No response
Relevant log output
No response
Anything else?
It's likely waiting to have all the players loaded to return anything. Question is:
Code of Conduct