capri-js / capri

Build static sites with interactive islands
https://capri.build
MIT License
208 stars 5 forks source link

Typo in data fetching example #37

Closed jablonski closed 2 years ago

jablonski commented 2 years ago

There's a small typo in the data fetching example which is hard to detect and which prevents data loading for static builds:

https://capri.build/docs/frameworks/react/

const user = useSWR("https://api.example.com", fetcher, { suspsense: true });

Should be:

const user = useSWR("https://api.example.com", fetcher, { suspense: true });

It needs to be suspense instead of suspsense.

fgnass commented 2 years ago

Thank you! I fixed it.