I have a Webflow page with two separate web components:
1. A user profile component, which handles all API calls related to loading the user and member data.
2. A course list component, which displays all available courses the user can sign up for.
What I’d like to achieve is this:
If a user is already registered for a course, the course list should hide the “Register” button and instead show a message like “You’re already signed up for this.”
The issue is that the course list component currently has no access to the user data held by the profile component. Duplicating the same API calls across both components feels inefficient and like poor practice.
If cookies/storage is the only way, so be it, but I'd like to know if there's a more elegant way. Thanks!