source: imaps-frontend/node_modules/react-use/lib/misc/hookState.js@ d565449

main
Last change on this file since d565449 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
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.resolveHookState = void 0;
4function resolveHookState(nextState, currentState) {
5 if (typeof nextState === 'function') {
6 return nextState.length ? nextState(currentState) : nextState();
7 }
8 return nextState;
9}
10exports.resolveHookState = resolveHookState;
Note: See TracBrowser for help on using the repository browser.