mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 08:07:15 +00:00
nit perf improvements
This commit is contained in:
@@ -126,11 +126,11 @@
|
||||
})
|
||||
}
|
||||
|
||||
const sameArgs = deepEqual(state[key]?.args, newValue.args)
|
||||
const sameResult = deepEqual(state[key]?.result, newValue.result)
|
||||
const sameJobId = state[key]?.job_id == newValue.job_id
|
||||
if (!sameArgs || !sameResult || !sameJobId) {
|
||||
// console.log('updateModuleStates', key, newValue)
|
||||
if (
|
||||
state[key]?.job_id != newValue.job_id ||
|
||||
!deepEqual(state[key]?.args, newValue.args) ||
|
||||
!deepEqual(state[key]?.result, newValue.result)
|
||||
) {
|
||||
moduleState.update((state) => {
|
||||
state[key].args = newValue.args
|
||||
state[key].result = newValue.result
|
||||
|
||||
Reference in New Issue
Block a user