deeply compare old and new params

This commit is contained in:
Kurt Hutten
2021-08-07 21:26:11 +10:00
parent 454995304a
commit dcd9d42d32
8 changed files with 9 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ const Customizer = () => {
currentParameters || {},
(values, source) => {
thunkDispatch({ type: 'setCurrentCustomizerParams', payload: values })
if (shouldLiveUpdate && source !== 'group') {
if (shouldLiveUpdate) {
handleRender()
}
},

View File

@@ -74,6 +74,7 @@ export const makeStlDownloadHandler =
camera: state.camera,
quality: 'high',
specialCadProcess,
parameters: state.currentParameters,
}).then((result) => result && saveFile(result.data))
})
}

View File

@@ -62,6 +62,7 @@ const IdeEditor = ({ Loading }) => {
code: state.code,
viewerSize: state.viewerSize,
camera: state.camera,
parameters: state.currentParameters,
})
})
localStorage.setItem(makeCodeStoreKey(state.ideType), state.code)

View File

@@ -211,6 +211,7 @@ const IdeViewer = ({ Loading }) => {
code: state.code,
viewerSize: state.viewerSize,
camera,
parameters: state.currentParameters,
})
}
})