mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix: previously revalidation was suppressed during weapon reporting to avoid race conditions, needs new mechanism with global ChatProvider
This commit is contained in:
parent
1edb2809b5
commit
4d87914479
|
|
@ -118,7 +118,7 @@ function QMatchPage() {
|
|||
// biome-ignore lint/correctness/useExhaustiveDependencies: biome migration
|
||||
React.useEffect(() => {
|
||||
setShowWeaponsForm(false);
|
||||
}, [data.reportedWeapons, data.match.id]);
|
||||
}, [JSON.stringify(data.reportedWeapons), data.match.id]);
|
||||
|
||||
const ownMember =
|
||||
data.match.groupAlpha.members.find((m) => m.id === user?.id) ??
|
||||
|
|
@ -917,7 +917,6 @@ function MapList({
|
|||
addRecentlyReportedWeapon={addRecentlyReportedWeapon}
|
||||
onOwnWeaponSelected={(newReportedWeapon) => {
|
||||
if (!newReportedWeapon) return;
|
||||
// xxx: previously revalidation was suppressed during weapon reporting to avoid race conditions, needs new mechanism with global ChatProvider
|
||||
setOwnWeaponsUsage((val) => {
|
||||
const result = val.filter(
|
||||
(reportedWeapon) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user