Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Allow symbol for Entity key #369

Merged
merged 2 commits into from
May 29, 2019
Merged

Conversation

ntucker
Copy link
Contributor

@ntucker ntucker commented Apr 7, 2019

Problem

Fixes https://github.com/paularmstrong/normalizr/issues/364

Solution

Simple one liner

TODO

  • Add & update tests
  • Ensure CI is passing (lint, tests, flow)
  • Update relevant documentation

@@ -159,23 +158,23 @@ const normalizedData = normalize(data, myArray);

### `Entity(key, definition = {}, options = {})`

* `key`: **required** The key name under which all entities of this type will be listed in the normalized response. Must be a string name.
* `key`: **required** The key name under which all entities of this type will be listed in the normalized response. Must be a string name or [Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only actual change; rest is prettier autorun

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the future, can you please configure your editor to not change files that you haven't modified? prettier within this repo is only run on files that have been modified.

@paularmstrong paularmstrong merged commit 4d94a0d into paularmstrong:master May 29, 2019
@ntucker ntucker deleted the symbol-key branch May 29, 2019 16:57
@lock
Copy link

lock bot commented Nov 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the Outdated label Nov 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow entity key to be a Symbol
2 participants