fix: multiple reloads in timeline#457
Closed
contentstackMridul wants to merge 3 commits intodevelop_v3from
Closed
Conversation
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
KANE-99
reviewed
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: multiple reloads in timeline

Ticket -> https://contentstack.atlassian.net/browse/VE-6673
Test Report ->
This pull request introduces enhancements to the live preview functionality, focusing on improving query parameter handling, adding support for timeline-specific behavior, and refining event listener logic. The most important changes include updates to query parameter management, adjustments to event handling, and integration of timeline-specific checks.
Query Parameter Handling Enhancements:
src/utils/addLivePreviewQueryTags.ts: Added support for thepreview_timestampquery parameter and refined logic for addinglive_preview,content_type_uid, andentry_uidquery parameters.src/utils/index.ts: Improved handling of click events by ensuring query parameters are added only to valid anchor elements and their descendants.Timeline-Specific Behavior:
src/livePreview/eventManager/postMessageEvent.hooks.ts: IntegratedisOpeningInTimeline()check to conditionally add query parameters when initializing live preview post messages.Event Listener Refinements:
src/livePreview/__test__/live-preview.test.ts: ChangedsendInitEventdeclaration fromlettoconstfor clarity and consistency.src/livePreview/eventManager/postMessageEvent.hooks.ts: ImportedisOpeningInTimelineutility for timeline-specific checks.