Splitting `IndexedDB` table when migrating from `CRA` to `vite`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, typescript, vite
- Lĩnh vực
- databases, mobile-dev
Hướng nghiên cứu
Issue không nêu tên tệp nào trong repository, entry point hay test nào. Hãy bắt đầu bằng cách tái hiện quá trình migration CRA-to-Vite trên một thiết bị Android và kiểm tra các store IndexedDB trước và sau khi upgrade; được xem là hoàn tất khi xác định được liệu các store riêng biệt có được tạo hay không, đồng thời document hoặc implement một migration path đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello, we encountered the problem when we tried to migrate our ionic v6.0 (CRA) project to ionic v7.0 (vite). Withing this migration we removed CRA specific files and added vite specific files, while not touching the code for working with @ionic/storage, the same drivers are used there (IndexedDB + localStorage), the name is the same.
After the migration, we started testing the update on an Android smartphone and found that changing the version meant that the app no longer saw data from storage. However, if you reinstall the previous version, the data is restored.
This behavior is specific only to mobile devices, on the web under desktop or mobile the error is not reproduced.
I checked IndexedDB via the Android debugger in Chrome and saw that ``IndexedDB` and the data in the Storage section in DevTools are indeed erased, while the amount of memory in the Storage section of the device settings shows that the memory required for the application has not decreased.
It looks to me like after switching from CRA to vite we now have 2 IndexedDBs in the phone's memory, but for some reason CRA can only connect to its own, and vite can only connect to its own in the app itself.
Can you suggest any solutions to this problem?
- Ngôn ngữ chính
- TypeScript
- Star
- 456
- Fork
- 97
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/ionic-storage
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/ionic-storage#326 · 1 bình luận ·
-
CREATE YOUR OWN LOCALSTORAGE Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ionic-team/ionic-storage#325 · 2 bình luận ·
-
indexeddb issue on iOS 18+ Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/ionic-storage#324 · 4 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ionic-team/ionic-storage#322 · 1 bình luận · 8 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
ionic-team/ionic-storage#320 ·
Tất cả issue của ionic-team/ionic-storage
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/claude-code#96687 ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
AOSSIE-Org/DebateAI#582 · 2 bình luận ·