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

ReactComponent attribute does not pass a tupple attribute to the component when the arguments are curried #556

Open
landy opened this issue Feb 21, 2023 · 2 comments

Comments

@landy
Copy link
Contributor

landy commented Feb 21, 2023

Hello Zaid, I encountered an error when passing an Aether optic (two functions in a tuple).

The function with the ReactComponent is compiled to javascript correctly. But the argument is not passed to the function when the component is used.

I created an example repository where the problem is visible https://github.com/landy/aether-fable-bug

image

@Zaid-Ajaj
Copy link
Owner

That's very interesting @landy! thanks for filing the issue 🙏 I will have a look when I have some time. Meanwhile, you can use an anonymous object as input for the component, I believe that should work.

@landy
Copy link
Contributor Author

landy commented Feb 23, 2023

Thank you! I just removed the ReactComponent attribute since it wasn't really needed.

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

No branches or pull requests

2 participants