Skip to content

Fetching the data from MongoDb in Apps.js is not working #817

Answered by mazzelman
JanineGlaser asked this question in Web
Discussion options

You must be logged in to vote

For the biggest part, Pete helped us out. ;)
We forgot to call the "fetcher". This is correct:
const { data, error, isLoading } = useSWR("/api/places", fetcher);

We thought it would be enough to wrap it around the components.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NikRoe
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by NikRoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
3 participants