Data-loader module overrides — replace the default record / tenant / relation / hook loaders with your own implementations.
Two calling styles. Pass a module positionally to override the entire data loader, or use the block form to swap individual sub-builders while keeping the defaults for the rest:
# Whole-module override
data_loader MyApp.Form.CustomDataLoader
# Per-sub-builder overrides
data_loader do
record MyApp.Form.DataLoader.RecordLoader
tenant MyApp.Form.DataLoader.TenantResolver
relation MyApp.Form.DataLoader.RelationLoader
hooks MyApp.Form.DataLoader.HookRunner
endDefaults
When no overrides are specified, the following defaults are used:
record—MishkaGervaz.Form.Web.DataLoader.RecordLoader.Defaulttenant—MishkaGervaz.Form.Web.DataLoader.TenantResolver.Defaultrelation—MishkaGervaz.Form.Web.DataLoader.RelationLoader.Defaulthooks—MishkaGervaz.Form.Web.DataLoader.HookRunner.Default
See MishkaGervaz.Form.Dsl.DataLoader for the DSL declaration.
Summary
Functions
Transform the data_loader after DSL compilation.