Deleting/Resetting a specific tournament #150
-
I just created a React Zustand storage that uses localForage to persist the data: https://gist.github.com/laukaichung/87335dcae16875d9ac7cfcea7da76c40 . It works fine for my page. Suppose that I have multiple tournaments stored in brackets-manager and want to reset or delete a specific tournament, completed or not. I can't find a method in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi! That's true that there is nothing for a whole tournament. To be honest, I never had the use case of having multiple tournaments yet so I never had to implement it. I only had single tournaments containing multiple stages until now. Note: I also didn't want to do it at the time, because brackets-manager.js is not supposed to manage the tournament level. So I'll only be able to remove brackets-manager-related data for a tournament, but not the tournament itself. I'll add this in the JSDoc. |
Beta Was this translation helpful? Give feedback.
Hi! That's true that there is nothing for a whole tournament. To be honest, I never had the use case of having multiple tournaments yet so I never had to implement it. I only had single tournaments containing multiple stages until now.
Note: I also didn't want to do it at the time, because brackets-manager.js is not supposed to manage the tournament level. So I'll only be able to remove brackets-manager-related data for a tournament, but not the tournament itself. I'll add this in the JSDoc.