-
Notifications
You must be signed in to change notification settings - Fork 63
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
Custom Map Function #42
Comments
I'm definitely not eager to introduce lodash given that we just got rid of it. I guess a prop that takes a custom mapping function would be possible but if there's no other use cases it seems more like it should be up to seamless-immutable to fix rather than us (they have a bug for it here). Could you use the |
It's more complicated to accomplish what you want than you imagine. Since I'm afraid that both approaches are not viable:
I completely agree with @AlexGilleran: Use the |
Thank you for your responses. I certainly understand not wanting to pull lodash back in...especially if you just removed it. I had seen it in the codebase when looking through it previously so thought it would be an option. As for the "bug" in seamless-immutable, the author has weighed in on it and offered some good reasons for not doing it. The use case I am trying to solve is also not unique to As for I didn't fully follow @texttechne 2nd point. I'll dig into the code to try and understand what you are saying. I have verified that a |
Just tested it with Actually this is the point I'm talking about in 2). Unfortunately a
By the way, we can always reopen the issue if you find an approach. |
@lifehackett where are you using |
I'm using https://github.com/rtfeldman/seamless-immutable lib for my data and it doesn't work with the native JS map function. It does work with libs like Ramda or lodash. I considered writing a wrapper component around
<For>
to extract my immutable structure into a JS array, but that would break some of the optimizations of immutable data.Would you be open to a PR that either
Thanks
The text was updated successfully, but these errors were encountered: