We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a5c41 commit 48977a6Copy full SHA for 48977a6
1 file changed
src/app/page.tsx
@@ -10,6 +10,7 @@ export default function Home() {
10
try {
11
const timestamp = new Date().getTime(); // Você pode usar esse timestamp para evitar cache em URL se quiser
12
const res = await api.get<productType[]>(`/product`);
13
+ console.log(res.data);
14
const json = res.data;
15
setData(json); // Atualiza o estado com os dados
16
} catch (error) {
0 commit comments