-
Notifications
You must be signed in to change notification settings - Fork 9
fix back button and fix dublicate request #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix back button and fix dublicate request #78
Conversation
WalkthroughThis update introduces mechanisms to prevent redundant or cyclic URL query parameter updates in the companies module, refines navigation state handling between the company list and detail pages, and improves the reactivity of pagination buttons. The changes include new flags, navigation state management, and lifecycle hooks for better synchronization and user experience. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CompaniesPage
participant Router
participant CompanyPage
User->>CompaniesPage: Triggers search/clear/page navigation
CompaniesPage->>CompaniesPage: Sets skipNextQueryParamsUpdate flag
CompaniesPage->>Router: Updates URL query params (if needed)
Router->>CompaniesPage: Emits queryParams change
CompaniesPage->>CompaniesPage: Skips redundant update if flag set
User->>CompaniesPage: Navigates to company detail
CompaniesPage->>Router: Navigates with state (page, search)
Router->>CompanyPage: Loads company detail with state
User->>CompanyPage: Clicks 'Back to list'
CompanyPage->>Router: Navigates back to list with stored state
Router->>CompaniesPage: Loads list with correct page/search
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (1)src/app/shared/components/pagination-buttons/pagination-buttons.component.ts (1)
🔇 Additional comments (17)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit