twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
20.16k stars 2.24k forks source link

Study Apollo client only directives and what we could do with them #4157

Closed lucasbordeau closed 1 month ago

lucasbordeau commented 8 months ago

Scope & Context

Apollo has introduced some client only directives that could help us handle some use cases more easily : https://www.apollographql.com/docs/react/data/directives/#client

It would help to talk about it with the @CoreTeamTwenty

FelixMalfait commented 1 month ago

Closing this as it's been open for some time now @lucasbordeau @charlesBochet

I don't see many use-cases for local fields.

The only use-case I see is for things we store in localStorage (for example the last seen view), maybe it could have been done this way. But I don't think the current implementation is bad.

charlesBochet commented 1 month ago

@FelixMalfait agree, we don't need it. I think we have solved all the current issues with the cache