# Prevent config refetches and tighten Windows platform detection · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/8dd107429e92dfcb52d8afb46e2a01517840fabc)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 8dd107429e92dfcb52d8afb46e2a01517840fabc

Requested commit: 8dd107429e92dfcb52d8afb46e2a01517840fabc

Commit: 8dd107429e92dfcb52d8afb46e2a01517840fabc

Tree: 72ffa99459ca4bc5bcb27c1ce04631521a842cf2

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Prevent config refetches and tighten Windows platform detection

- set server config query `staleTime` to `Infinity` to avoid unnecessary refetches
- narrow `isWindowsPlatform` matching to Windows-prefixed identifiers
- add unit tests for Windows and non-Windows platform cases

```

## Parents

- [1269b5258097d75f4cb413a0612570a106e32426](https://git.cafe/pingdotgg/t3code/commit/1269b5258097d75f4cb413a0612570a106e32426?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/8dd107429e92dfcb52d8afb46e2a01517840fabc?format=markdown)
