View Source Storex (storex v0.4.0)

Summary

Functions

Mutate store from elixir.

Mutate store from elixir.

Functions

Link to this function

mutate(store, mutation, payload)

View Source

Mutate store from elixir.

Invoke mutation callback globally across specified store asynchronously:

Storex.mutate("ExampleApp.Store", "reload", ["params"])
Link to this function

mutate(key, store, mutation, payload)

View Source

Mutate store from elixir.

Invoke mutation callback by specified key and store asynchronously:

Storex.mutate("user_id", "ExampleApp.Store", "reload", ["params"])