mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 10:07:35 +00:00
Get the first set of internal state right away
This commit is contained in:
parent
c135cf91a6
commit
1ecab48bdf
1 changed files with 5 additions and 0 deletions
|
|
@ -163,6 +163,11 @@ function Debugger({ maki }) {
|
|||
if (!paused) next();
|
||||
}, [paused]);
|
||||
|
||||
// When we get a new generator, immediatly take the first step.
|
||||
React.useEffect(() => {
|
||||
next();
|
||||
}, [gen]);
|
||||
|
||||
React.useEffect(() => {
|
||||
function handler(e) {
|
||||
switch (e.key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue