Introduction
Several core and optional middleware are provided by the framework, however, application developers can easily write their own.
Basic usage
- Defining middleware via the same primitive used for defining function-based widgets
- Optionally defining a properties interface that augments the properties interface of widgets that compose the middleware. Property values are given when creating instances of the composing widgets.
- Returning a simple function reference that defines the middleware’s API that other composing widgets or middleware can interact with
- Using the core
invalidator
middleware to flag the composing widget as requiring re-rendering
- Augmenting the widget’s properties interface with additional properties from any middleware used
- Passing in middleware properties when using widgets that compose them