-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: soft delete #642
feat: soft delete #642
Conversation
…etch also data related to deletedAt
6e94025
to
3eb0236
Compare
changé !
|
app/src/components/Loader.js
Outdated
@@ -55,7 +55,7 @@ const mergeItems = (oldItems, newItems) => { | |||
|
|||
const Loader = () => { | |||
const [picture, setPicture] = useState([picture1, picture3, picture2][randomIntFromInterval(0, 2)]); | |||
const [lastRefresh, setLastRefresh] = useStorage('last-refresh', 0); | |||
const [lastRefresh, setLastRefresh] = useStorage('last-refresh--cache-version-2022-04-25', 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'en ai profité aussi pour régler le problème de cache sans toucher à MMKV
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je me déteste, voir commentaire plus bas
3eb0236
to
4c9efda
Compare
4c9efda
to
76ee90b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est bon
🎉 Deployment for commit d3c5122 : IngressesDocker images
Debug |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
# [1.95.0](v1.94.8...v1.95.0) (2022-04-26) ### Features * soft delete ([#642](#642)) ([2998209](2998209))
🎉 This PR is included in version 1.95.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
TODO
Avec ce code qu'on envoie, on a toujours des éléments supprimés dans l'app qui ne devraient pas être là.
Solution simple et utile pour l'avenir: gérer les versions de cache (je pense ? qu'en penses-tu ?)
Je voulais faire une chose simple mais ça marchait pas, donc je ne l'ai pas encore fait
Je pense surtout qu'on aurait intérêt à changer de lib MMKV pour aller vers une plus populaire et plus simple d'utilisation, et potentiellement qui marche mieux: https://github.com/mrousavy/react-native-mmkv (voir: How is this library different from another mmkv?)