1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00

prettier - auto

This commit is contained in:
Michael Shanks 2020-02-23 22:07:28 +00:00
parent c3cb67cc3a
commit fd810c9910

View file

@ -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