headless pagination
can we get all notifications without pagination with novu headless?
5 Replies
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
-----------------------------
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) .Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
@_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
yes, but new page dont allow view previous in case of scrolling for example
dont?
but you are right, i will try your aproach