How yoskutik/mobx-react-mvvm works
This deprecated React MVVM library provides two largely independent runtime capabilities: React views resolve and maintain ViewModels, while Model supplies observable field tracking and validation. The view workflow is supported by both source and README; Model behavior is described in the README and implemented in src/Model.ts. Services are user-defined rather than a package subsystem. The graph omits unsampled integrations and does not imply that Models are used by ViewModels.
Main entry points: view.tsx View Wrapper · Model.ts Model Factory · ViewModel.ts ViewModel Base
Components 9
React Views
- View Wrapper
src/view.tsx - Child View
src/view.tsx - Error Boundary
src/view.tsx - ViewModel Context
src/view.tsx
ViewModel Runtime
- ViewModel Base
src/ViewModel.ts
Observable Models
- Model Factory
src/Model.ts - Field Tracking
src/Model.ts - Field Validation
src/Model.ts
Other components
- Application
Connections 12
- Application → View Wrapper: wraps component
README.md - View Wrapper → ViewModel Base: resolves instance
src/view.tsx - View Wrapper → ViewModel Context: provides instance
src/view.tsx - View Wrapper → Error Boundary: wraps render
src/view.tsx - View Wrapper → ViewModel Base: sets props parent
src/view.tsx - View Wrapper → ViewModel Base: runs lifecycle
src/view.tsx - Application → Child View: wraps child
README.md - Child View → ViewModel Context: reads instance
src/view.tsx - Child View → Error Boundary: wraps render
src/view.tsx - Application → Model Factory: creates model
README.md - Model Factory → Field Tracking: registers tracking
src/Model.ts - Model Factory → Field Validation: registers validators
src/Model.ts