@suss/framework-react-router
v0.3.2
Published
Pattern pack for extracting suss behavioral summaries from React Router loaders and actions.
Maintainers
Readme
@suss/framework-react-router
Framework pack for React Router loaders and actions. Declarative patterns for file-convention-based discovery and React Router's terminal shapes.
What this package is
@suss/framework-react-router returns a PatternPack object describing:
- Discovery via named exports (
loader,action) - Terminals:
json(),data(),redirect()function calls, plusthrowthrough any error helper the project names inerrorHelpers - Input mapping: single object parameter with
request,params,contextroles
Where it sits in suss
Depends only on @suss/extractor (for the PatternPack type). Contains no analysis logic.
Coverage
License
Licensed under Apache 2.0. See LICENSE.
For how framework packs work, see docs/framework-packs.md.
