N
Novu2mo ago
_7eo.

headless pagination

can we get all notifications without pagination with novu headless?
5 Replies
Ask Inkeep
Ask Inkeep2mo ago
Hi @_7eo., I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Get Started * Headless JavaScript Service * How to use Headless Notification Center * Headless API Reference -----------------------------
Ask Inkeep
Ask Inkeep2mo ago
Answer Currently, Novu's headless library does not support fetching all notifications without pagination directly. The fetchNotifications function requires specifying a page number, and it does not support setting the page size to 'all' to bypass pagination. It is designed to fetch notifications page by page (1) .
Ask Inkeep
Ask Inkeep2mo ago
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Pawan Jain
Pawan Jain2mo ago
@_7eo. Would you like to share the usecase. Conventionally pagination works in most of the usecases. New page can be fetched on scroll or some button click
_7eo.
_7eo.2mo ago
yes, but new page dont allow view previous in case of scrolling for example dont? but you are right, i will try your aproach