Return the default compiler plugin ordering for page compilation.
(
*,
style: ComponentStyle | None = None,
plugins: Sequence[Plugin] = (),
)
| 598 | |
| 599 | |
| 600 | def default_page_plugins( |
| 601 | *, |
| 602 | style: ComponentStyle | None = None, |
| 603 | plugins: Sequence[Plugin] = (), |
| 604 | ) -> tuple[Plugin, ...]: |
| 605 | """Return the default compiler plugin ordering for page compilation.""" |
| 606 | from reflex.compiler.plugins.memoize import MemoizeStatefulPlugin |
| 607 | |
| 608 | chain: list[Plugin] = [*plugins, DefaultPagePlugin()] |
| 609 | if style is not None: |
| 610 | chain.append(ApplyStylePlugin(style=style)) |
| 611 | chain.extend((DefaultCollectorPlugin(), MemoizeStatefulPlugin())) |
| 612 | return tuple(chain) |
| 613 | |
| 614 | |
| 615 | __all__ = [ |