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

Auto-memoize inline computed calls #16

Open
aleclarson opened this issue Jul 14, 2023 · 0 comments
Open

Auto-memoize inline computed calls #16

aleclarson opened this issue Jul 14, 2023 · 0 comments
Labels
enhancement New feature or request feature: compiler Related to the component compiler

Comments

@aleclarson
Copy link
Contributor

aleclarson commented Jul 14, 2023

const MyComponent = (props) => (
  <div class={computed(() => props.a.value + props.b.value)} />
)

These would not be subject to the Rules of Hooks, of course. That's the best part!

@aleclarson aleclarson added the enhancement New feature or request label Jul 14, 2023
@aleclarson aleclarson added the feature: compiler Related to the component compiler label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: compiler Related to the component compiler
Projects
None yet
Development

No branches or pull requests

1 participant