refract
refract copied to clipboard
Add more verbose example for pushEvent & fix type
REOPENING In https://refract.js.org/usage/pushing-to-props#stateful-apertures it says that the useEvent creates the tuple of pushEvent and fromEvent, the example was pushEvent creating the tuple. It was making me doubt myself 🤔
Made new type for PushEvent so it is clear there it can take params
Also added a more verbose use on how to use pushEvent as a prop on the component
Is there any progress?
@kyrokstan thanks for this, it was confusing for me at first and I assumed pushEvent doesn't take any params at all, until I clicked through the source and realised it will if I pass it a type. Also, before that, it took me like 15 mins to realise the docs were incorrect and useEvent was what I was looking for. This will really help people trying this lib out for the first time.
@thisRaptori Appreciate you not abandoning this project. Do you think it's a good idea for me to submit a PR for upgrading to @most/core
instead of most
? I'm using Rx right now but the project is still pre-MVP and I'd love to try switching over from Rx.
Yeah that'd be great! I'd need to figure out how the publish scripts work unless @troch would be around to handle the publishing, but that shouldn't be an issue 😄