
Adamnaeman: Hi guys, Sorry for interrupt. I got a problem where my page does not repond to the TMDB API. The link youtube is the tutorial that I follow. For the FlatList component where the props is renderItem, I can make MovieCard appear in index page but I cannot make MovieCard appear in search page.
At timing 1:46:00 https://www.youtube.com/watch?v=f8Z9JyB2EIE&t=6602s

could you check if the api returns valid result?


like console log the result

no

no result?

it don show any respond from console.log

index show, while search not show

const {
data: movies = [],
loading,
error,
refetch: loadMovies,
reset,
} = useFetch(() => fetchMovies({ query: searchQuery }), false);
in the search could you console log these parts

and check the results

useEffect(() => {
console.log("Fetched Movies:", movies);
}, [movies]);
useEffect(() => {
console.log("Loading:", loading);
}, [loading]);
add these to your search code then search some data

LOG Fetched Movies: null LOG Loading: false

this is when the screen loads or when you type something?

screens loads

from the youtube video it should had appear just like the index page

since i got he problem, i stopped the tutorial and try to fix the code first

it has been 2 hours for me to try fix the code

i mean to check the result when you type some words or a movie name

no, it don appear

so the problem is in the fetching the movies check if api is working or find a another provider
Recommended threads
- Set succes/failure url in console
Hi guys, I want to set up a succes and failure url for my OAuth2 provider Google. But I don't see any options for this? Is it not possible to do so? Beside th...
- Expo react native error
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the nativ...
- Appwrite Error: 401 Unauthorized on getC...
Hi everyone, I'm getting an error while trying to fetch the current user using Appwrite in my React project. Here's the error log: auth.js:41 GET https://fra....
