source-academy/frontend

Run button not working on mobile devices

JovenSoh opened this issue · 2 comments

After a recent update to the mobile version of source academy, the run button in the playground no longer works. Clicking run does not run the code, there is no output either.

image

This appears to be a regression from #2688 where the side content has been refactored to use sagas instead. Executing code from the mobile workspace is slightly different from desktop as it does not directly trigger evalCode when clicked, but instead relies on the changing tab functionality (the run button is considered a "tab") to call the code execution routine. Maybe @leeyi45 can give some advice on what is the best way to handle this?

Is that the exact functionality? Code is evaluated when the current tab is changed? When I was looking at it originally it wasn't exactly 100% clear to me, I just replicated the code to the best of my ability.