The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
Hello, I recently started using frontity because it looks very good. Unfortunately Iāve came across an error I cannot solve. I wanted to prefetch a post category using beforeSSR so I can display this category on another url. Whenever I use beforeSSR it says on the homepage āCannot read property ācontentā of undefinedā. This is weird because I also used this method with contact form 7 and that worked just fine. Hopefully you can set me up with a solution.
Thanks in advance
tieshoenderdos2
I fixed the beforeSSR issue but now I cannot render the content onto the home page, still gives cannot read property ācontentā of undefined as error
codemonkeynorth3
@tieshoenderdos Please post some code or preferably a link to your public repo
tieshoenderdos4
thx for your answer but I already solved it!
codemonkeynorth5
It would be great if you could share your solution please and tag it as solved as it really helps the rest of the community. Everybody comes up against these same issues all the time.
Even if itās just a case of adding a couple of lines to the settings, or moving a line of code inside a useEffect, it helps clarify how frontity works in real-world cases.