Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
534 stars 78 forks source link

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

Open landy opened 1 year ago

landy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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