Closed connecteev closed 4 years ago
If you want to include RSS/ATOM/JSON feeds on your page, then you need a URL representing it. It either serves a static file or triggers a serverMiddleware to fetch.
The feed will be rendered as file in the set format and will be available in the dist folder and therefore on the website.
A serverMiddleware will fetch the feed and display the content dynamically
Very interesting....bookmarked for me to look into this :) Thanks @manniL!
@manniL One question here for you! I am using Nuxt in Dynamic SSR mode.
Say I was creating:
I am currently triggering an Axios request every time the page is loaded. Would this feed-module help in one or both of the above scenarios and how /when do you recommend using it? Thanks in advance..
The feed module could work for both, though the 2nd use case is probably easier to implement.
@manniL thank you for the clarification. Can the feed module be used with infinite scrolling? Any examples of this (in codesanbox or github) would be great.
I found https://github.com/HendraPB/nuxt2-infinite-scroll (demo here ) but it turns out this does not show the feed results if you view source, so SSR doesnt work.
This module looks interesting but I'm not sure what it's for. What is the benefit of this feed package versus calling axios to retrieve feeds directly? Is caching the only benefit here?