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

fix: use correct identifier when using useDataStoreBinding #104

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Oct 4, 2021

Looking at the PR for useDataStoreBinding it appears that the golden file (and codegen) is off.
https://github.com/aws-amplify/amplify-ui/pull/418/files#diff-78fd8656c9b68a3d3d93c93d975912ac7b5c8751beb3d7885b1df7f25cc911b6R42

Codegen set the identifier as the name of collection property. https://code.amazon.com/packages/AmplifyStudioCommon/blobs/0bdd98916ce175a739eb7c3d8e992f2b9174c096/--/component_golden_files/react/collection-with-data-binding.tsx#L26

But it is clear it would not be possible for the useDataStoreBinding to know this.

This PR updates to the correct usage of useDataStoreBinding.

Update to golden files: https://code.amazon.com/reviews/CR-58177760

@dpilch dpilch requested a review from frimfram October 5, 2021 14:31
@dpilch dpilch merged commit ef93e45 into main Oct 6, 2021
@dpilch dpilch deleted the fix-collection-binding branch October 6, 2021 19:40
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.

2 participants