Comments (2)
To address the object deactivation and caching issue, ensure that after deactivating an object in SettingsObjectEdit.tsx
via handleDisable
, you also update the Apollo cache to reflect this change. Use useDeleteRecordFromCache
from useDeleteRecordFromCache.ts
to remove the deactivated object from the cache. If the object's data is still appearing, it might be due to stale cache entries. Implement a cache update in handleDisable
by invoking deleteRecordFromCache
with the appropriate parameters, including the object's metadata and ID. This ensures the cache is in sync with the current state of the object post-deactivation.
References
/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx
/packages/twenty-front/src/modules/object-record/cache/hooks/useDeleteRecordFromCache.ts
/packages/twenty-front/src/modules/object-record/cache/utils/deleteRecordFromCache.ts
/packages/twenty-server/src/engine/api/rest/metadata-rest.service.ts
/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.resolver.ts
/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts
/packages/twenty-server/src/workspace/workspace-sync-metadata/factories/standard-relation.factory.ts
/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterRecords.ts
/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewSortRecords.ts
/packages/twenty-front/src/modules/object-record/hooks/useDeleteOneRecord.ts
/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
from twenty.
This was fixed in #5316 which we need to rollout
from twenty.
Related Issues (20)
- Add support for Links filtering and sorting HOT 2
- Sort Button Size Too Small on Mobile HOT 3
- Bottom Bar Not Visible on Mobile Without Scrolling HOT 3
- Disable Horizontal Scrolling on Mobile Record Page HOT 3
- Change CMD+K / Search to Full Page Display on Mobile HOT 3
- Define error handling contract, with snackbar notifications HOT 1
- Emails sent and received by email aliases are not associated with the workspaceMember HOT 2
- REST API error with timelineActivities HOT 1
- Ex: Support filtering multi selects [API only, no frontend changes] HOT 1
- Favorite folders and new type of favorites HOT 4
- Migrate Domain Field to the new Link Field Type HOT 3
- Change Filtered Index Empty State Message HOT 2
- On Record Table, with a sorter set, update any field will change the order of items HOT 1
- In Opportunity, the field overrides the record board card. HOT 1
- Ability to sort on setting tables HOT 3
- Overflow issue on tables HOT 1
- Text Field Overflow Beyond Cell Limits in UI HOT 1
- Misleading Rest Api docs HOT 1
- Ability to prevent new workspace creation HOT 1
- Link Field Type Missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twenty.