Hey, I’m simply trying to fetch some blog articles from builder io and display the titles on the page using routeLoader$ in qwik. I am getting a SignalWrapper returned from the routeLoader. How do i get the actual results array out of the SignalWrapper so i can display the data on the page?
import { component$ } from “@builder.io/qwik”;
import { routeLoader$ } from “@builder.io/qwik-city”;
export const blogContent = routeLoader$(async (requestEvent) => {
const res = await fetch(
myBuilderEndpoint
);
const articles = await res.json();
return articles;
});
export default component$(() => {
const articles = blogContent();
console.log(articles);
return <></>;
});
Here is what articles is logging:
SignalWrapper {
ref: { CREXFaESVhw: { results: [Array] } },
prop: ‘CREXFaESVhw’
}