Skip to content

Commit 4ccfe90

Browse files
authored
fix(cache hint): config validation (#50)
Fix config validation when using cacheHint
1 parent 9728a81 commit 4ccfe90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internals/config/checkActionsConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const isDefined = value => value !== undefined;
1212

1313
const MANDATORY_KEYS = ['method', 'url'];
1414
const OPTIONAL_KEYS = [
15+
'cacheHint',
1516
'beforeHook',
1617
'normalizer',
1718
'metadataNormalizer',
@@ -35,7 +36,7 @@ const missingMandatoryKeyError = mandatoryKEY =>
3536
3637
For more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig`;
3738

38-
const unknownKeyError = actionKey => `Unknown key "${actionKey}.
39+
const unknownKeyError = actionKey => `Unknown key "${actionKey}".
3940
4041
For more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig`;
4142

0 commit comments

Comments
 (0)