Skip to content

Resolve all options during construction#226

Merged
leebyron merged 1 commit intomasterfrom
dont-hold-options
Nov 17, 2019
Merged

Resolve all options during construction#226
leebyron merged 1 commit intomasterfrom
dont-hold-options

Conversation

@leebyron
Copy link
Copy Markdown
Contributor

Rather than holding a reference to the provided options and computing behaviors and defaults on the fly, this validates and extracts all options during construction.

Minor additional behavioral changes include allowing cacheMap to be set to null as an equivalence to cache: false and providing the DataLoader instance as this to cacheKeyFn to be consistent with doing the same for batchLoadFn.

Finally, this adds additional tests and makes minor edits to documentation.

@leebyron leebyron mentioned this pull request Nov 17, 2019
@leebyron leebyron merged commit 01c829d into master Nov 17, 2019
@leebyron leebyron deleted the dont-hold-options branch November 17, 2019 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant