Folo
Folo copied to clipboard
Use the same store and db module for desktop and mobile
Clear and concise description of the problem
Currently, desktop and mobile platforms use separate logic for data fetching and storage. We need to merge these processes in the future to reduce maintenance costs.
database
https://github.com/RSSNext/Follow/tree/dev/apps/mobile/src/database https://github.com/RSSNext/Follow/tree/dev/apps/renderer/src/database
store
https://github.com/RSSNext/Follow/tree/dev/apps/mobile/src/store https://github.com/RSSNext/Follow/tree/dev/apps/renderer/src/store
Suggested solution
- Move Expo SQLite and Drizzle to the new database package #3809
- Move the database service to the database package and avoid direct database calls #3817
- Create a new store package to share data fetching and state management logic #3819
- remove global
apiClientauthClient
- remove global
- Migrate the store logic for the desktop module by module
Alternative
No response
Additional context
No response
Validations
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [x] This issue is valid