DEV Community

loading...

Discussion on: RxJS Proxy: 3 new features

Collapse
t7yang profile image
t7yang
<input
  value={ s.title }
  onChange={ e => s.title.next(e.target.value) } />
Enter fullscreen mode Exit fullscreen mode

How possible to pass s.title directly into input value 🤔
I try this in codesandbox, it did throwing an error with invalid value prop value on <input> tag.

Collapse
kosich profile image
Kostia Palchyk Author • Edited

Hey, t7yang! A totally valid question 😅

I wanted to show the idea w/o binding to any framework, so the code is somwehwat pseudocodish: some frameworks need adaptations for RxJS (regardless of whether we have a proxy or not)

I haven't studied how to adapt RxJS to other frameworks, but you got a general idea.

Please, ping me if you have any questions left
👋

Collapse
t7yang profile image
t7yang

Got it. I am Angular developer, async pipe should work well with this.

ReckJS and <$> pretty interesting. I saw ReckJS before, cool 🥳

Thread Thread
kosich profile image
Kostia Palchyk Author

Thanks, I'm glad you enjoyed it 🙌

Ah, yeah, Angular is very powerful! And don't forget about the onPush change detection strategy! 🙂