# Use pathname ref in EventRouter bootstrap navigation · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/69a2eac2ff1ba0af1afd0334514789340051cab2)

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

Visibility: public

Requested revision: 69a2eac2ff1ba0af1afd0334514789340051cab2

Requested commit: 69a2eac2ff1ba0af1afd0334514789340051cab2

Commit: 69a2eac2ff1ba0af1afd0334514789340051cab2

Tree: 4cb8e880013e4392ae6fd4492c4a7a2f57d43772

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Use pathname ref in EventRouter bootstrap navigation

- Track latest `pathname` in a ref for bootstrap event handling
- Prevent effect resubscriptions by removing `pathname` from deps
- Keep auto-navigation gated to root route using current path

```

## Parents

- [5fd632c357914553f2baf746df0454527db89b09](https://git.cafe/gitcafe/t3code/commit/5fd632c357914553f2baf746df0454527db89b09?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/69a2eac2ff1ba0af1afd0334514789340051cab2?format=markdown)
