AshDispatch.Resource.Transformers.InjectEntityNotifier (AshDispatch v0.5.0)

View Source

Transformer that auto-injects the host app's EntityNotifier into any resource that declares entity_changes(true).

This eliminates the need to manually add simple_notifiers: [...] on each entity resource — the dispatch extension handles it automatically.

Configuration

Set the notifier module in your AshDispatch config:

config :ash_dispatch, entity_notifier: MyApp.Notifiers.EntityNotifier

If not configured, this transformer is a no-op.

Summary

Functions

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.