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

Function components interrface injected #226

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

bcardarella
Copy link
Contributor

Breaking change

  • Change LVN function components to arity 2
  • inteface injected into each function component assigns
  • interface passed as 2nd argument to function components

**Breaking change**

* Change LVN function components to arity 2
* inteface injected into each function component assigns
* interface passed as 2nd argument to function components
@bcardarella
Copy link
Contributor Author

@carson-katri this PR will allow you to now do this in function components:

def button(assigns, _interface) do
  ...
end

this will also support :interface-* speccial attr with function component templates

@bcardarella bcardarella merged commit a24d05a into main Jan 7, 2025
1 check passed
@bcardarella bcardarella deleted the bc-function-components-interface-1 branch January 7, 2025 05:52
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.

1 participant