obelisk icon indicating copy to clipboard operation
obelisk copied to clipboard

Next pages HTML does not re-render but it's Javascript has run.

Open augyg opened this issue 1 year ago • 0 comments

While developing for a personal project, I came across a weird behavior where although I could click around my app no problem and new pages would render no problem. Except for a page which uses WebRTC and uses a ton of JSM. This is routed in the same manner as any other page though. When I click my button which uses the following code:

beginInterview <- buttonWithAttrs "Begin Interview" <....> setRoute (FrontendRoute_Pages :/ RecordMock :/ Record :/ userId <$ beginInterview)

The URL changes to the new page and the Javascript must have run, which is clear from the browser running getUserMedia (and asking for permission to use my camera), however the HTML remains as the old page until I click refresh.

My repo is private but I'm happy to share with whoever ends up working on this if it helps.

this happens in the production and development. the production version of the problem is here:

https://aceinterviewpreparation.com/main/mockInterview/mockMain/1

And you will see the bug if you click "begin"

augyg avatar Aug 10 '22 15:08 augyg