dengliming opened a new issue, #648:
URL: https://github.com/apache/shenyu-dashboard/issues/648
## Description
The lookup uses `buttonCache[perms]` but the store uses the literal property
name `perms`, so every lookup misses and overwrites the same slot.
## Location
(Lines refer to `master @ 83969a5`.)
- `src/utils/AuthButton.js:47-57`
## Impact
The cache is dead code; each render recomputes the permission check. If
fixed as-is it also needs invalidation on permission refresh (`buttonCache =
{}` at line 31 exists for this).
## Suggested fix
Write `buttonCache[perms] = authFunction`.
## Related existing
None
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]