Skip to content
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 record page context store instance id #10508

Merged
merged 5 commits into from
Feb 26, 2025

Conversation

bosiraphael
Copy link
Contributor

Fixes bug introduced by #10272

  • Replace show page context store instance id by 'main-context-store'

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR fixes a bug by replacing dynamic context store instance IDs with a static 'main-context-store' ID in the RecordShowPage component.

  • Changed context store instance ID in packages/twenty-front/src/pages/object-record/RecordShowPage.tsx from dynamic record-show-${objectRecordId} to static 'main-context-store'
  • This ensures consistent context access across the application, particularly important for components that need to interact with the record show page
  • Aligns with the pattern used in MainContextStoreProvider.tsx which manages context for both record index and show pages
  • Fixes context synchronization issues that were introduced in PR Refacto views #10272

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@lucasbordeau lucasbordeau left a comment

Choose a reason for hiding this comment

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

LGTM

@bosiraphael bosiraphael enabled auto-merge (squash) February 26, 2025 15:03
@bosiraphael bosiraphael merged commit dd12bc3 into main Feb 26, 2025
50 checks passed
@bosiraphael bosiraphael deleted the r--fix-record-page-context-store-instance-id branch February 26, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants