Qwik v2 beta is... over! 🎉 🎉
⚡️ Now in Release Candidate ⚡️
Laying out the foundations for a fully capable resumable future: fast reactive updates, out of order streaming, async computations, error and pending states...
Discover more in the blog post 👇
https://t.co/ti5XpWZW0D
RxJS 9 beta is a bit different. But the web platform Observable is a bit different. 🧵
Operators are now added to the observable through symbol references. This prevents trampling of native methods and conflicts with other libraries, while maintaining composition chains.
Working on the next version of RxJS.. which will target the native web platform observable. ... and you'll love/hate this:
I literally had to make something I initially called "ColdSubject". 🤣
The problem is this:
The web platform observable is ref-counted, and will only call it's initializer once for N subscribers. If I want to build a BehaviorSubject that emits the most recent value to each new subscriber, I need to have it based off of a classic "Cold" observable.
@niklas_wortmann @Armandotrue Exactly. Ben talked about this in this video, please take a look: https://t.co/gIc4Aaesu9
Observables are lazy, while Promises are not. Devs usually wrap Promises to methods, but they don't have to do it with Observables because Observables won't do anything until you subscribe.
Y’all there are observables in your browser right now.
if you are in a chromium based browser, that is up-to-date, open your console and type the word “Observable”
@niklas_wortmann @WebStormIDE Oh, it's just, 10 years of having one way to do it. Which I loved, BTW. Not sure I'm gonna get used to this 😁
At least, there's a plugin that I'm gonna try. Thanks for sharing this issue.
🚨🚨🚨 It's happening!!
If you'd like to know why RxJS 8 development halted about a year ago, this is why. Future versions of RxJS will align with and use native observables!
The journey to standardization (in different venues) has gone on for 10 years. There's a lot more to do now, but this is huge.
@mgechev Is it gonna use some service worker or something similar to do background prefetching of parts of the app that can be partially hydrated and then use cached code when needed?
@BenLesh@DanielGlejzner I haven't looked at it for a while as well, but it should be okayish, though I think it still includes deprecated operators. Some of them are probably now removed in v8 alpha.
@DanielGlejzner, feel free to open PR if you notice anything unusual.
🅰️Angular folks,
Some Signals vs Observables info...
1. Use signals for state management, not observables.
2. Use observables for cancellation and other event coordination.
3. DO NOT TRY TO USE SIGNALS LIKE RXJS. It's a bad/silly idea.
They are complimentary technologies.
1/
Wow @WebStormIDE, this is amazing!
When using @PrettierCode's "arrowParens" with "avoid", adding parenthesis in WebStorm is as easy as just typing comma after the first parameter.
In case you didn't know: There's work currently being done to add Observables to the web platform! There are even flags to play with it now in Chrome Canary.
You can follow along here: https://t.co/ghzAywmVsq