-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
AsyncCreatable HOC #1210
AsyncCreatable HOC #1210
Conversation
Pfft. Coveralls is soooo pessimistic. 😜 |
7547f80
to
019f660
Compare
Following a child-function pattern. Tests have been added.
AsyncCreateable works great for me. Maybe it would be worth implementing "Home/Pos1" and "End" keys. Great work Brian! |
@traumatic Thanks for giving it a spin!
This seems unrelated to this HOC, or am I misunderstanding? |
Sorry @bvaughn! Stupid me, the focus is on the dropbox list one I start typing. All good. |
No problem at all. Just wanted to clarify. 😄 |
1772388
to
feb70e4
Compare
@JedWatson: I feel good about this PR after smoke testing it for a while. (@traumatic also smoke tested it.) I'm going to move forward with it since it cleans up the slightly awkward state PR #1200 left master in. Let's chat on Twitter if you have any concerns or remaining suggestions. 😄 |
@bvaughn FYI, I've been testing this with our react select implementation all morning, and haven't found any issues. Both the areas updated to use |
Thanks for the update @stinoga! That's great to hear. 😁 |
Seems like this one was merged but it wasn't built before the release, so it's in the |
It's more recent than RC1. It should go out with RC2. 😄 |
Ups, sorry, my bad 😓 |
Hey @bvaughn Any tentative timeline for RC2 release? |
No. I reached out to Jed about it on Twitter. If he's okay with us making another RC, I think it would be good to. However I don't think I have permissions to publish the release to Npm myself. Will see. |
Wow looks like I'm the first person to try using AsyncCreatable before it's been published. What are the chances! +1 for this! |
We talked. Looks like RC2 will land this weekend. I'm trying to finish a refactor of |
Hey @bvaughn |
Sorry to hear you're having some troubles with the component, @deepakbansal1010. I'm afraid I don't have enough info to help based on your description though. You will likely have better luck if you include a link to a Plnkr (or similar) that reproduces the problem? You may also find faster responses on Stack Overflow since a lot more people check it than here. 😁 |
@bvaughn Thanks for all the effort put into this component! The custom filter I'm using works as expected with both the Interestingly, I'm even observing this behavior with a simple identity function: filterOptions={options => options} Is there something to be aware of regarding this combination, or possibly an internal issue with If necessary, I can whip up a working demo to reproduce. |
|
You're right, it looks like relatively simple composition. There's now a link to a plunker that demonstrates the bug in #1547 |
Hi 😄 If you haven't already, please file this as a GH issue. We're talking on a PR that was merged some time ago and so it's likely to get overlooked. |
Hey, totally agree. I wanted to connect this to the GH issue since I started the discussion here. So that was a link to the issue, not just the plunker. Sorry for any confusion 🙂 |
Oh, OK. Great!
…On Feb 13, 2017 8:19 AM, "Caleb Miller" ***@***.***> wrote:
Hey, totally agree. I wanted to connect this to the GH issue since I
started the discussion here. So that was a link to the issue, not just the
plunker. Sorry for any confusion 🙂
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1210 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABznQF8LqG5hvxTy4rvReBtTivmSDreks5rcIKegaJpZM4J6Xm4>
.
|
@bvaughn : hello, i'm new to this. i tried, but couldn't be able to implement this. i'm struck in this more than 3 days. please help me out. i'm using it in an atomic design env. it's okey, i can handle that. my requirement is async+creatable+multi please help me out with useage of { AsyncCreatable } (can it really meet my requirements?)with all necessary props. |
Resolves issue #1200.
Summary
Combining
Async
andCreatable
HOCs turned out to be more tricky than I had initially expected. It is not sufficient to simple nest one within the other. To this end, I propose a newAsyncCreatable
HOC that neatly ties the other two together (keeping the complexity out of user-land).In general, async and composition is an area that we should probably put a lot of thought into before version 2 ships (so as to avoid some of the hackiness in this PR). Maybe this is good enough for v1 though?
I've updated the example site so that the Github users (Async) demo has a "creatable?" checkbox that can be used to test the Async + Creatable combination.
Syntax
Demo