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
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?
- Issue with Appwrite Read Request Limit b...
Hi Team, My coding terminal connected to the Appwrite CLI blew through my Projects Read request limit with in a day! and thats a large limit! I'm not sure how...