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

feat: add single record binding generation #51

Merged
merged 1 commit into from
Sep 10, 2021
Merged

Conversation

frimfram
Copy link
Contributor

@frimfram frimfram commented Sep 9, 2021

Description of changes:

Generate code to bind components' top-level properties to a specific record

Generates the following code:

const { buttonColor } = useDataStoreBinding({ 
  type: "record", 
  model: UserPreferences,
  criteria: filterCriteriaButtonColor
});

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dpilch dpilch self-requested a review September 10, 2021 00:32
@frimfram frimfram merged commit 454d754 into main Sep 10, 2021
@dpilch dpilch deleted the single-record-binding branch September 10, 2021 13:26
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