Commit 683bfcb
refactor: improve cache invalidation in useOrganisation
- Use request parameter (req.id) instead of response (res?.id) for safer cache invalidation
- Add optional chaining to providesTags in getOrganisation query
- Ensures cache invalidation works even if response is malformed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 7a5d3f7 commit 683bfcb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments