Skip to content

Conversation

@artembelik
Copy link
Contributor

при переходе на новую страницу не происходит "destroy" компонента-примера

@artembelik artembelik self-assigned this Sep 12, 2025
@artembelik artembelik added the bug Something isn't working label Sep 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where live example components were not being properly destroyed when navigating to new pages. The fix ensures that all live examples are cleared before fetching new documents to prevent memory leaks and stale component instances.

  • Adds proper cleanup of live examples before fetching new documents
  • Ensures component destruction lifecycle is properly handled during navigation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/docs/src/app/components/live-example/docs-live-example.ts Adds clearLiveExamples() call before getDocument() to ensure cleanup
apps/docs/src/app/components/example-viewer/example-viewer.ts Adds clearLiveExamples() call before fetchDocument() to ensure cleanup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 9200e0f):

https://koobiq-next--prs-1020-x191r8l9.web.app

(expires Wed, 17 Sep 2025 10:32:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@lskramarov lskramarov merged commit 75385d4 into main Sep 16, 2025
6 checks passed
@lskramarov lskramarov deleted the fix/DS-4159 branch September 16, 2025 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants