Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DatabaseProviderProps<DBSchema>

The proptypes for DatabaseProvider.

Type parameters

Hierarchy

  • DatabaseProviderProps

Index

Properties

Optional allowUnmounting

allowUnmounting: boolean | null

Allow unmounting outside of an error case.

Important! Don't set this flag unless you know what you're doing.

children

children: React.ReactNode

Child components of this provider.

Anything that needs a Database to function should be contained withing this subtree. Use useDatabase with DatabaseProviderProps.context to access the Database from within those components.

context

context: DatabaseContext<DBSchema>

Generated using TypeDoc