go_router_modular 2.0.3+1
go_router_modular: ^2.0.3+1 copied to clipboard
go_router wrapper with a modular twist dependency injections and automatic dispose
2.0.3+1 #
Added #
- Lifecycle Methods: Added support for initState and dispose methods in modules
- Recursive Import: Implemented recursive binding imports between modules
Fixed #
- Auto Dispose: Fixed auto dispose mechanism to ensure proper resource cleanup
- State Management: Improved module state management during lifecycle
2.0.2+1 #
Added #
- Debug Logging: Added comprehensive debug logging system for route registration and bind management
- New
InternalLogs
class for consistent debug output - Detailed logs for
_register
,_recursiveRegisterBinds
,registerBindsIfNeeded
, and_handleRouteExit
functions - Enhanced visibility into module lifecycle and dependency injection process
- New
Fixed #
- Redirect Bind Registration: Fixed issue where
_register
function was not being called during route redirects- Modified
ChildRoute._createChild
to register binds before redirect evaluation - Modified
ModuleRoute._createModule
to register binds before redirect evaluation - Modified
ShellRoute._createShellRoutes
to register binds before redirect evaluation - Ensures dependencies are properly injected before page construction during redirects
- Modified
Improved #
- Performance Optimization: Optimized bind registration to avoid unnecessary registrations
- Only register binds when an actual redirect occurs (redirectResult != null)
- Prevents duplicate module registrations and improves performance
- Reduces noise in debug logs by eliminating redundant operations
Technical Details #
- Enhanced route creation workflow to ensure proper dependency injection timing
- Improved module lifecycle management with better dispose handling for unused modules
- Added safeguards to prevent bind registration conflicts and circular dependencies
0.0.1 #
- TODO: Describe initial release.