Skip to content

Observable available in store2? #71

@GELight

Description

@GELight

Hi,
Sorry for my bad englisch before ... :)
Currently we evaluate whether we could use store2 in our projects.

For better understanding our requirements:
The pages in our applications are based on multiple web-apps based on Vue.js, React or Vanilla, etc ... at same time.

We need a store for our application states.
My question is:
Is there a functionallity in your library to use "Observables" that any applications will triggert automatically by changes where variables from the store are used?

[EDIT]
Another improvement will be to have promises that I can sure that my value is updatet successful in my store like this:

window.store.transact('test', (obj) => {
    obj.test++;
}).then((updatedValue) => {
    window.EventEmitter3.emit("button.clicked", window.store('test'));
    // or ...
    window.EventEmitter3.emit("button.clicked", updatedValue);
);

... same fpr set() or setAll() ...

If I am blind or do not understand your documentation then "sorry" so far. :)

Best regards,
Mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions