(metadata: MetadataState<User>)
| 147 | export const meKey = ["me"]; |
| 148 | |
| 149 | export const me = (metadata: MetadataState<User>) => { |
| 150 | return cachedQuery({ |
| 151 | metadata, |
| 152 | queryKey: meKey, |
| 153 | queryFn: API.getAuthenticatedUser, |
| 154 | }); |
| 155 | }; |
| 156 | |
| 157 | const userKey = (usernameOrId: string) => ["user", usernameOrId]; |
| 158 |
no test coverage detected