Reduce idle timer updates and stabilize toolbox normalization
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
cce3f3c7f8
commit
c096cc07fe
3 changed files with 10 additions and 4 deletions
|
|
@ -146,7 +146,8 @@ function getToneFromDelta(value) {
|
|||
}
|
||||
|
||||
export function RngSimulatorModule({ toolboxId, moduleId, context, editing = false, setEditing = () => {}, textExchangeOpen }) {
|
||||
const data = context.normalizeRngSimulatorData(context.getModuleData(toolboxId, moduleId, {}));
|
||||
const rawData = context.getModuleData(toolboxId, moduleId, {});
|
||||
const data = useMemo(() => context.normalizeRngSimulatorData(rawData), [context, rawData]);
|
||||
const textContent = context.moduleText?.rngSimulator || {};
|
||||
const tabs = useMemo(() => [
|
||||
{ ...RNG_TABS[0], label: textContent.trackingTabLabel || RNG_TABS[0].label },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue