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

[React] fix missing key error #4193

Merged
merged 1 commit into from Jan 24, 2020

Conversation

goszczynskip
Copy link
Contributor

Pull request #4098 partially fixed issue with missing key error. Context
element is used in array children and also misses key. This PR fully fixes
issue #4116.

@coveralls
Copy link

coveralls commented Jan 23, 2020

Coverage Status

Coverage decreased (-2.5%) to 80.896% when pulling f159bfd on goszczynskip:fix/key-react-error into f1311dc on uber:master.

@@ -79,7 +79,7 @@ export default function positionChildrenUnderViews({children, viewports, deck, C
deck._onViewStateChange(params);
}
};
return createElement(ContextProvider, {value: contextValue}, viewElement);
return createElement(ContextProvider, {key: 'context', value: contextValue}, viewElement);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This key is not unique.

Copy link
Collaborator

Choose a reason for hiding this comment

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

  • Run yarn lint fix to apply prettier.
  • You can just use the key variable in this function.

Pull request visgl#4098 partially fixed issue with missing key error. Context
element is used in array children and also misses key. This PR fully fixes
issue visgl#4116.
Copy link
Collaborator

@Pessimistress Pessimistress left a comment

Choose a reason for hiding this comment

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

Thank you!

@Pessimistress Pessimistress changed the title fix: missing key error [React] fix missing key error Jan 24, 2020
@Pessimistress Pessimistress merged commit 6504586 into visgl:master Jan 24, 2020
tgorkin added a commit that referenced this pull request Jan 28, 2020
* master: (82 commits)
  fix typo in performance.md
  pydeck: ArcLayer, BitmapLayer, ColumnLayer examples (#4189)
  [React] fix missing key error (#4193)
  [Bug] Fix hexagon layer projection (#4173)
  Remove HtmlWebpackPlugin from examples/playground (#4178)
  @deck.gl/json: Fix bug dropping props with falsy values (#4185)
  Fix buffer size check in Attribute.updateBuffer (#4190)
  Bump luma dependency (#4191)
  data-filter: support double precision (#4163)
  Use int type for enum uniforms (#4171)
  [TileLayer] fix tile indices generation in edge cases (#4170)
  v8.1.0-alpha.1
  Voodoo fix for Mac+NVIDIA bug (#4166)
  Remove unnecessary code from project glsl (#4162)
  Fix H3HexagonLayer update when viewport jumps (#4158)
  Refactor render tests; use stricter pass criteria (#4157)
  [Extension] Add source_target to brushing mode (#4150)
  Add offset feature to PathStyleExtension (#4126)
  Project module: support pre-projected positions (#4140)
  Repeat maps at low zoom levels (#4105)
  ...
chrisgervang pushed a commit that referenced this pull request Jan 31, 2020
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

3 participants