📄️ useAuthProvider
Returns the authProvider instance passed to `. Useful when you need to call auth methods directly (e.g. checkAuth, getPermissions`) outside of the built-in controller hooks.
📄️ useBulkDeleteController
Provides the logic for bulk-deleting selected records in a list. Returns a handler that calls the data provider's deleteMany method for the currently selected record IDs.
📄️ useBulkDeleteMeta
Resolves the confirmation dialog title, description, success message, and mutation mode for bulk delete operations. It applies ICU plural formatting based on the number of selected records. Use this inside a component rendered within a `` context.
📄️ useChoicesContext
Reads choices data from the nearest choices context, typically provided by a ``. Used internally by select and autocomplete inputs to access available options, loading state, and pagination controls.
📄️ useCreateContext
Returns the context provided by ``, including the current record, resource name, and the save function. Use this in custom components rendered inside a create page.
📄️ useCreateMeta
Resolves the title, description, redirect, and success message for the Create view. Use this inside a component rendered within `` to consume fully-resolved metadata without manually wiring schema values, translations, and settings.
📄️ useCreatePath
Returns a function that generates URL paths for resource pages (list, detail, edit, create). Strato overrides the react-admin default with its own routing scheme:
📄️ useDefaultTitle
Returns the application-level default title string passed to ``. Useful for building page titles that incorporate the app name.
📄️ useDeleteController
Provides the logic for deleting a single record. Returns a click handler that calls the data provider's delete method and handles optimistic updates, undo, and error notifications.
📄️ useDeleteMeta
Resolves the confirmation dialog title, description, success message, and mutation mode for single-record delete operations. Use this inside a component rendered within a record context (Detail, Edit, or a List row).
📄️ useDetailMeta
Resolves the title, description, and detail component for the Detail view. Use this inside a component rendered within `` to consume fully-resolved metadata without manually wiring schema values, translations, and settings.
📄️ useEditContext
Returns the context provided by ``, including the current record being edited, the resource name, and the save handler. Use this in custom components rendered inside an edit page.
📄️ useEditMeta
Resolves the title, description, redirect, success message, and mutation mode for the Edit view. Use this inside a component rendered within `` to consume fully-resolved metadata without manually wiring schema values, translations, and settings.
📄️ useFieldValue
Reads a single field's value from the current record context. Accepts a source path and returns the resolved value, supporting dot-notation for nested properties.
📄️ useGetRecordRepresentation
Returns a function that converts a record into a human-readable string. Used by reference fields and inputs to display related records. The representation is controlled by the recordRepresentation prop on ` or `.
📄️ useGetResourceLabel
Returns a function that produces a translated label for a resource — either singular or plural. Looks up the i18n translation key resources..name and falls back to humanizing the resource name.
📄️ useInput
The foundation for building custom form inputs. Connects a component to react-hook-form, handling registration, validation, and change/blur events. Returns field state and event handlers from react-hook-form.
📄️ useListContext
Returns the full list page context: fetched data, pagination state, sort, filters, selected IDs, and callbacks to update them. Available inside any component rendered within a ``.
📄️ useListMeta
Resolves the title, description, and display settings for the List view. Use this inside a component rendered within `` to consume the fully-resolved metadata without manually wiring schema values, translations, and settings.
📄️ useLocale
Returns the currently active locale string (e.g. "en", "fr").
📄️ useLocales
Returns the list of available locales as configured in `. Each entry contains a locale code and a name` string suitable for display in a language switcher.
📄️ useRecordContext
Returns the current record object from the nearest record context. Available inside field components, detail pages, edit pages, or any component wrapped with ``.
📄️ useResourceContext
Returns the current resource name string from context. Useful for building components that adapt to whichever resource they're rendered inside.
📄️ useResourceDefinition
Returns the definition object for a given resource (or the current resource from context), including its name, icon, hasList, hasEdit, hasCreate, and hasShow flags.
📄️ useResourceDefinitions
Returns a map of all registered resource definitions keyed by resource name. Useful for building navigation or introspective components that need to iterate over all resources.
📄️ useSaveContext
Returns the save function and saving state from the nearest create or edit context. Use this to build custom save buttons or to trigger a save programmatically.
📄️ useSetLocale
Returns a function that changes the active locale. Typically used in language-switcher components alongside useLocales.
📄️ useSettingValue
Returns a resolver function that applies three-tier precedence when resolving an AdminSettings value:
📄️ useSettings
Returns the current Admin-level settings. Values reflect the ` props passed to `, merged over the framework's built-in defaults.
📄️ useShowContext
Returns the context provided by ` (react-admin's `), including the loaded record, resource name, and loading state. Available in any component rendered inside a detail page.
📄️ useShowController
Fetches a single record by ID and returns the full controller state (record, loading, error, refetch). Used internally by ` to load its data. Call this directly only if you are building a fully custom detail page outside of `.
📄️ useStore
A useState-like hook backed by localStorage. Allows UI state (e.g. sidebar collapsed, preferred view mode) to persist across page reloads. Keys are namespaced per user when an auth provider is present.
📄️ useTranslate
Returns a translate(key, options?) function for translating message keys using the active i18n provider. Strato uses ICU MessageFormat, so options can include named variables for interpolation.
📄️ useTranslateLabel
Returns a function that translates a field or input label. First looks up resources..fields.{source} in the i18n messages, then falls back to humanizing the source string. Used internally by all field and input components.