4 ms·
Not to nitpick, but I'm wondering about the tradeoffs of adjusting volume/playback rate in an effect (https://github.com/joshwcomeau/use-sound/blob/master/src/i
by bennyg 7y ago
Not to nitpick, but I'm wondering about the tradeoffs of adjusting volume/playback rate in an effect (https://github.com/joshwcomeau/use-sound/blob/master/src/index.ts#L75 https://github.com/joshwcomeau/use-sound/blob/master/src/ind...). I'm kind of wondering how this works in a concurrent mode world when there are other, higher priority things React is deferring reconciliation/effects for.
- onion2k 7y agoYou have control over the priority of things in concurrent mode. So long as your component doesn't suspend and it's not in a transition then it'll update as soon as possible (basically what happens in React now). https://reactjs.org/docs/concurrent-mode-patterns.html#splitting-high-and-low-priority-state https://reactjs.org/docs/concurrent-mode-patterns.html#split...