fsmx
fsmx copied to clipboard
States as an :atom
Hey team, thank you for the work you are doing here.
Quick question, any specific reason why atoms are not valid states in the type spec?

This works just fine but I'm getting mismatching type in the dialyzer
def submit_order(order, order_params) do
{:ok, %{new: new}} =
Multi.new()
|> Fsmx.transition_multi(order, :new, :submitted, order_params)
|> Repo.transaction()
{:ok, Repo.reload(new)}
end
Hi @xantrac I believe this has been fixed in #3 , but never actually release to the package manager
I'm no longer actively working on Elixir, so that's why I ended up forgetting that when merging those fixes In the meantime, you can use the direct git repo as a dependency, and it should fix your issue
@xantrac I just pushed a new release. apologies for the huge delay