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
- 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...
- Sub-minute server-side execution for rea...
Hey — I'm building a real-time auction app on Appwrite Cloud and running into a timing limitation I'd please love some clarity on. My use case: when a bidding ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...