cozy / cozy-drive

Cozy Drive Web App for Cozy Cloud
GNU Affero General Public License v3.0
171 stars 65 forks source link

fix: FilesViewerLoading was imported from a file that did not export it #3239

Closed JF-Cozy closed 3 weeks ago

JF-Cozy commented 3 weeks ago

ça ne posait pas de souci avec un usage classique de l'app : chargement de la home, puis navigation dans les dossier/fichier. Car la requête de récupération des fichiers est exécuté au lancement de l'app, et donc la navigation se fait sur le cache. Usequery dans les composants retourne alors toujours un tableau et non un null. On ne passe donc jamais dans le FilesViewerLoading.

Sauf qu'avec un refresh sur la visualisation d'un fichier, la query est réinitialisée, donc on passe par un null, donc l'app plantait car l'import n'était pas bon.

bundlemon[bot] commented 3 weeks ago

BundleMon

Files updated (2) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | public/drive.(hash).js
| 1.56MB (-103B -0.01%) | 1.7MB :white_check_mark: | app/drive.(hash).js
| 161.01KB (-112B -0.07%) | 300KB
Unchanged files (16) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | vendors/drive.(hash).js
| 1.79MB | 2MB :white_check_mark: | public/pdf.worker.entry.(hash).worker.js
| 345.35KB | 350KB :white_check_mark: | services/qualificationMigration/drive.js
| 282.15KB | 500KB :white_check_mark: | services/dacc/drive.js
| 263.08KB | 500KB :white_check_mark: | public/cozy-client-js.js
| 159.28KB | 160KB :white_check_mark: | intents/drive.(hash).js
| 87.66KB | 190KB :white_check_mark: | public/drive.(hash).min.css
| 39.94KB | 100KB :white_check_mark: | onlyOffice/slide.pptx
| 24.83KB | 25KB :white_check_mark: | app-drive.(hash).min.css
| 10.73KB | 56KB :white_check_mark: | intents-drive.(hash).min.css
| 7.89KB | 40KB :white_check_mark: | onlyOffice/text.docx
| 5.85KB | 6KB :white_check_mark: | onlyOffice/spreadsheet.xlsx
| 5.02KB | 6KB :white_check_mark: | manifest.webapp
| 1.87KB | 2KB :white_check_mark: | index.html
| 594B | 1KB :white_check_mark: | intents/index.html
| 507B | 1KB :white_check_mark: | manifest.json
| 185B | 1KB

Total files change -218B 0%

Groups updated (2) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | public/**
| 2.11MB (-104B 0%) | - :white_check_mark: | app/**
| 161.01KB (-112B -0.07%) | -
Unchanged groups (5) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | vendors/**
| 1.79MB | - :white_check_mark: | services/**
| 545.23KB | - :white_check_mark: | intents/**
| 88.15KB | - :white_check_mark: | onlyOffice/**
| 35.7KB | - :white_check_mark: | img/**
| 5.85KB | -

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history | Target branch size history