File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/core-web/src/media/controls Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -368,6 +368,7 @@ const addEffectsToStore = (
368368 backoffMax : __initialProps . backoffMax ,
369369 calculateDelay : __initialProps . calculateDelay ,
370370 errorCount,
371+ lastError : __controls . lastError ,
371372 hlsConfig : __controls . hlsConfig ,
372373 mounted,
373374 progress,
@@ -382,6 +383,7 @@ const addEffectsToStore = (
382383 backoffMax,
383384 calculateDelay,
384385 errorCount,
386+ lastError,
385387 hlsConfig,
386388 mounted,
387389 progress,
@@ -590,12 +592,13 @@ const addEffectsToStore = (
590592 equalityFn : ( a , b ) => {
591593 const errorCountChanged =
592594 a . errorCount !== b . errorCount && b . errorCount !== 0 ;
595+ const lastErrorChanged = a . lastError !== b . lastError ;
593596
594597 const sourceChanged = a . source ?. src !== b . source ?. src ;
595598 const mountedChanged = a . mounted !== b . mounted ;
596599
597600 const shouldReRender =
598- errorCountChanged || sourceChanged || mountedChanged ;
601+ errorCountChanged || lastErrorChanged || sourceChanged || mountedChanged ;
599602
600603 return ! shouldReRender ;
601604 } ,
You can’t perform that action at this time.
0 commit comments