Back to Fish Redux

Page

doc/concept/page.md

0.3.4692 B
Original Source

Page

  • One and only one store in one page

  • Page inherits from Component, so it can configure all the factors of Component.

  • Page can configure Middleware for AOP management of Redux.

  • Page must be configured with an initialization function that initializes page data initState.

  • Sample Code

dart
/// Hello World
class HelloWordPage extends Page<String, String> {
    HelloWordPage():
        super(
            initState: (String msg) => msg,
            view:(String msg, _, __) => Text('Hello ${msg}'),
        );
}

HelloWordPage().buildPage('world')