Skip to content
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

Add PubSub and ReactiveStore utilities #486

Merged
merged 11 commits into from
Jan 27, 2025

Conversation

jorge-ramirez-arredondo
Copy link
Contributor

@jorge-ramirez-arredondo jorge-ramirez-arredondo commented Dec 27, 2024

This adds the new ReactiveStore utility (and adds the PubSub utility since the Reactive Store is dependent on it).

This PR is pretty big since it includes fairly detailed READMEs and tests for both the ReactiveStore and PubSub utilities, as well as demos for the ReactiveStore.

See the prototype sandbox for the ReactiveStore here: https://codesandbox.io/p/sandbox/reactive-store-prototype-vhz76g?workspaceId=ws_FRqmQNTVG95dm2hG2FbpSi

@jorge-ramirez-arredondo jorge-ramirez-arredondo marked this pull request as ready for review January 27, 2025 17:03
@jorge-ramirez-arredondo jorge-ramirez-arredondo requested a review from a team as a code owner January 27, 2025 17:03
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really love this, and can't wait to try it out in the movie tool stuff!

*/
export default class PubSub {
constructor() {
this._subscribers = new Map();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: if you do feel like using #privateVariables, feel free! We've started using them more liberally in core lately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I didn't know we officially supported the new syntax now. I'll make a separate PR to update these once I have a bit of time again.

@jorge-ramirez-arredondo jorge-ramirez-arredondo merged commit 2a0ed92 into main Jan 27, 2025
3 checks passed
@jorge-ramirez-arredondo jorge-ramirez-arredondo deleted the jorge-ramirez-arredondo/ReactiveStore branch January 27, 2025 21:57
Copy link

🎉 This PR is included in version 2.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants