Skip to content

Commit 41ad19f

Browse files
Remove recommendation to reload upon chain changes (#1805)
1 parent cdd6aa3 commit 41ad19f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

wallet/reference/provider-api.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,6 @@ provider // Or window.ethereum if you don't support EIP-6963.
186186
The provider emits this event when the currently connected chain changes.
187187
Listen to this event to [detect a user's network](../how-to/manage-networks/detect-network.md).
188188

189-
:::caution Important
190-
191-
We strongly recommend reloading the page upon chain changes, unless you have a good reason not to:
192-
193-
```typescript
194-
provider // Or window.ethereum if you don't support EIP-6963.
195-
.on("chainChanged", (chainId) => window.location.reload())
196-
```
197-
198-
:::
199-
200189
### `connect`
201190

202191
```typescript

0 commit comments

Comments
 (0)