Buradasın
Next.js Parallel Routes Guide
nextjs.org/docs/app/api-reference/file-conventions/parallel-routesYapay zekadan makale özeti
- Core Concepts
- Parallel Routes enable simultaneous rendering of multiple pages within a layout
- Slots are defined using @folder convention and passed as layout props
- Slots are not route segments and don't affect URL structure
- Children prop is an implicit slot that doesn't need folder mapping
- Behavior
- Soft navigation maintains active state for unmatched slots
- Hard navigation renders default.js or 404 for unmatched slots
- Next.js tracks active state for each slot by default
- Advanced Features
- UseSelectedLayoutSegment allows reading active route segments
- Conditional routing enables different pages based on user roles
- Tab groups can be created within slots for independent navigation
- Modals can be implemented using Intercepting Routes
- Loading and error states can be defined independently for each route