A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
search
AI OnAI Off
Hi!
I'm using a repeater for a listing (of pages). The list consists of posts/pages and I'm using the property Division for heading (they are sorted by this property). Since I want the heading only to appear once I've come up with the function below. It works but I wonder if there is another (more simple) way to retrieve a property and only display it once (first time when sorted) when using a repeater?