Remove Derivation.tapImmediate()
This is now just an extra flag on `Derivation.onChange()`
This commit is contained in:
parent
f2bb24ef99
commit
a24a149a52
10 changed files with 60 additions and 59 deletions
|
@ -35,9 +35,13 @@ const r3fExtension: IExtension = {
|
|||
},
|
||||
]
|
||||
})
|
||||
return calc.tapImmediate(Ticker.raf, () => {
|
||||
set(calc.getValue())
|
||||
})
|
||||
return calc.onChange(
|
||||
Ticker.raf,
|
||||
() => {
|
||||
set(calc.getValue())
|
||||
},
|
||||
true,
|
||||
)
|
||||
},
|
||||
'snapshot-editor': (set, studio) => {
|
||||
const {createSnapshot} = useExtensionStore.getState()
|
||||
|
@ -136,9 +140,13 @@ const r3fExtension: IExtension = {
|
|||
},
|
||||
]
|
||||
})
|
||||
return calc.tapImmediate(Ticker.raf, () => {
|
||||
set(calc.getValue())
|
||||
})
|
||||
return calc.onChange(
|
||||
Ticker.raf,
|
||||
() => {
|
||||
set(calc.getValue())
|
||||
},
|
||||
true,
|
||||
)
|
||||
},
|
||||
},
|
||||
panes: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue