Open quteboy opened 6 months ago
` const Page = React.forwardRef(({ pageNumber }, ref) => { return (
);
}); `
You should be using only one HtmlFlipBook component. Currently you're rendering one HtmlFlipBook component per item in your map function.
Also you should probably use Document (pdf viewer) as a container for one Page.
`
`
like this ? if not please share correct code
Yup, like that. Does it work now?
console errors are cleaned but still rendering every pdf page individually
` {filteredData.map((item, index) => { return (
);
})}
` here is code that i have updated Please let me know
i am fetching a list of document from an api and its an array of object each object contains url key with s3 bucket url as value below code is rendering files but each page and pdf is rendering separately thus making page flip animation not working i think it is because of pagnumber calculation please provide support
` {filteredData.map((item, index) => { return (
`