-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Reverting broken filter from #12352
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
Reverting broken filter from #12352
Conversation
There was a problem hiding this 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 reverts changes that introduced bugs in filter functionality, focusing on proper filter initialization and state management.
- Added
hasInitializedCurrentRecordFiltersComponentFamilyState.ts
to track per-view filter initialization usingRecordFiltersComponentInstanceContext
- Modified
ViewBarRecordFilterEffect.tsx
to useuseRecoilComponentFamilyStateV2
instead ofuseRecoilComponentStateV2
for better state management - Removed
isDeeplyEqual
check in filter updates to prevent unnecessary re-renders - Added similar initialization tracking for filter groups and sorts in
ViewBarRecordFilterGroupEffect
andViewBarRecordSortEffect
- Improved view bar details component to handle filter state changes more efficiently
2 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
...nty-front/src/modules/views/states/hasInitializedCurrentRecordFiltersComponentFamilyState.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/views/components/ViewBarRecordFilterEffect.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Introdution Reverting introduced bug by twentyhq#12082 We need to address the bug that was "fixed" by this in order to refresh the recordFilters state, will have a look with @lucasbordeau 🙏
# Introdution Reverting introduced bug by twentyhq#12082 We need to address the bug that was "fixed" by this in order to refresh the recordFilters state, will have a look with @lucasbordeau 🙏
# Introdution Reverting introduced bug by twentyhq#12082 We need to address the bug that was "fixed" by this in order to refresh the recordFilters state, will have a look with @lucasbordeau 🙏
Introdution
Reverting introduced bug by #12082
We need to address the bug that was "fixed" by this in order to refresh the recordFilters state, will have a look with @lucasbordeau 🙏