Skip to content

Commit a25c2a2

Browse files
LadyBluenotesatilafassina
authored andcommitted
[Content]: Typo in fetching-data guide
As per #689 , fixing the typo present with `onCleanup`
1 parent cb2e2f3 commit a25c2a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/guides/fetching-data.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ When real-time feedback is necessary, the `refetch` method can be used to reload
172172
This method can be particularly useful when data is constantly evolving, such as with real-time financial applications.
173173

174174
```jsx
175-
import { createResource, onCleanUp } from 'solid-js';
175+
import { createResource, onCleanup } from 'solid-js';
176176

177177
function StockPriceTicker() {
178178
const [prices, { refetch }] = createResource(fetchStockPrices);
179179

180180
const timer = setInterval(() => {
181181
refetch()
182182
}, 1000);
183-
onCleanUp(() => clearInterval(timer))
183+
onCleanup(() => clearInterval(timer))
184184
}
185185
```

0 commit comments

Comments
 (0)