Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLoaderConfig(): allow multiple default config properties #34

Closed

Conversation

mcmath
Copy link

@mcmath mcmath commented Apr 11, 2016

This PR updates getLoaderConfig() to allow the user to pass an arbitrary number of default
config property names to getLoaderConfig(), instead of just one.

See issue #33

This pull request does the following:

This commit allows the user to pass an arbitrary number of default
config property names to getLoaderConfig(), instead of just one.

- If zero default config properties are passed, getLoaderConfig(context)
  will behave like parseQuery(context.query), unless the user passes
  a custom config property via the query string.
- If one default config propery is passed, the behavior is unchanged.
- If multiple default config properties are passed, the first such
  property on context.options will be used, unless no such property is
  present, in which case an empty object will be used.
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.

None yet

1 participant