main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
356 bytes
|
Rev | Line | |
---|
[d565449] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | exports.resolveHookState = void 0;
|
---|
| 4 | function resolveHookState(nextState, currentState) {
|
---|
| 5 | if (typeof nextState === 'function') {
|
---|
| 6 | return nextState.length ? nextState(currentState) : nextState();
|
---|
| 7 | }
|
---|
| 8 | return nextState;
|
---|
| 9 | }
|
---|
| 10 | exports.resolveHookState = resolveHookState;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.