connect library

Provides the useDvaConnect hook for connecting widgets to the Dva Store.

This module enables widgets to subscribe to Store state changes and automatically rebuild when specified state changes occur. It supports namespace filtering, custom state mapping, and custom update strategies.

Classes

DvaConnect
Represents the return value of useDvaConnect.

Functions

useDvaConnect({String? namespace, List<String>? listenKeys, MapState? mapState, ShouldUpdate? shouldUpdate, VoidCallback? didMounted}) DvaConnect
A hook that connects a widget to the Dva Store.

Typedefs

MapState = Map<String, StoreOfState> Function(Map<String, StoreOfState> rootState)
Type definition for a custom state mapping function.
ShouldUpdate = bool Function(StoreOfState lState, StoreOfState nState)
Type definition for a custom update decision function.