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
- Using OTP Email to verify user for passw...
Has anyone ever implemented this? If you did what was your aproach? Did you write an appwrite function?
- Empty listRows() response
Hi there, I'm shehryar, I'm new to react native and appwrite as well, I'm following a tutorial, what's surprising is the listRows({databaseId, tableId, queries}...
- Current User Is Not Authorized To Perfor...
I keep getting an error saying the current user is not authorized to perform the requested action, when I'm trying to create a row a table. Permissions have bee...