Files
Ivan Vasilov 8f90c86050 chore: Use react-query cache for file previews (#23398)
* Empty spaces.

* Remove prop drilling for selectedFilePreview and just use it from the store.

* Add a hook for getting a fetch url. Use it in all places where it's needed. Remove the file cache from the store.

* Simplify the onCopyUrl hook further.

* Fix some bugs in the preview pane.
2025-01-27 14:32:03 +01:00
..
2025-01-17 19:07:35 +01:00
2024-03-04 18:39:53 +08:00

What to clean for Storage

  • Convert files from javascript to typescript
  • Not use mobx store for UI related states, these could simply be done via react's useState or useReducer
    • Involves some heavy surgery nonetheless as 90% of the explorer logic is written a mobx store StorageExplorerStore
    • If anyone is able to get to it before I do, please feel free to take this on and perhaps even write it more simply 🙏