Description
Describe the bug
When (1) Server-side rendering and (2) Browsing in firefox, Svelte fails to set bindings for values that are initialized to a value on page reload.
For instance, with code like
<audio ... bind:duration={myDuration} />
if myDuration
is initialized to 0, then it will remain zero indefinitely.
Logs
N/A
To Reproduce
A repo reproducing this issue is here: https://github.com/qstearns/audio-event-repro
I used sapper to get SSR to work easily, but I suspect this is a svelte issue.
To run follow the readme or:
- npm i && npm run dev
- Navigate to localhost:3000 in Firefox
- Reload the page and observe the value is set to 0.
Expected behavior
I expected the value to be set to the value of the audio clip.
Stacktraces
N/A
Information about your Svelte project:
-
Your browser and the version: Firefox 79.0
-
Your operating system: Manjaro Linux 20.1
-
Svelte version: 3.17.3
-
Rollup
Severity
This bug is just annoying because I can always initialize my values to undefined and adjust my application code, but a fix would make me happy.
Additional context
May be related to #3524, which I have also noticed a regression on.