Browse Source

prettier - auto

master
Michael Shanks 7 years ago
parent
commit
9835e71a2e
  1. 16
      packages/client/src/state/stateManager.js

16
packages/client/src/state/stateManager.js

@ -213,18 +213,16 @@ const _setup = (
continue continue
} }
let paramValueSource; let paramValueSource
if (paramBinding.source === "context") paramValueSource = context; if (paramBinding.source === "context") paramValueSource = context
if (paramBinding.source === "state") paramValueSource = getCurrentState(); if (paramBinding.source === "state")
if (paramBinding.source === "context") paramValueSource = context; paramValueSource = getCurrentState()
if (paramBinding.source === "context") paramValueSource = context
// The new dynamic event parameter bound to the relevant source // The new dynamic event parameter bound to the relevant source
resolvedParams[paramName] = () => getState( resolvedParams[paramName] = () =>
paramValueSource, getState(paramValueSource, paramBinding.path, paramBinding.fallback)
paramBinding.path,
paramBinding.fallback
);
} }
handlerInfo.parameters = resolvedParams handlerInfo.parameters = resolvedParams

Loading…
Cancel
Save