# `AshBackendDrivenOptimisticUi.NotOptimistic`
[🔗](https://github.com/Undeadlol1/ash_backend_driven_optimistic_ui/blob/v0.1.0/lib/ash_backend_driven_optimistic_ui/not_optimistic.ex#L1)

Says an action deliberately has no `optimistic` rule, and why.

    not_optimistic :create_from_image, because: :ai_result

The reason is one of `reasons/0`:

  * `:ai_result` - an AI or external service decides the answer.
  * `:server_decides` - random, server-computed, or depends on other users.
  * `:background` - telemetry, sync, fire-and-forget.
  * `:admin` - admin, dev, rare settings, auth.
  * `:not_yet` - should be optimistic, not converted yet.

Nothing is shipped to the client; tooling reads it with
`AshBackendDrivenOptimisticUi.Info.not_optimistic/1`.

# `t`

```elixir
@type t() :: %AshBackendDrivenOptimisticUi.NotOptimistic{
  __identifier__: atom() | nil,
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  action: atom(),
  because: atom()
}
```

# `reasons`

```elixir
@spec reasons() :: [atom()]
```

The accepted `because:` values.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
