Next.js Discord

Discord Forum

accessibility question dealing with aria and loaders

Unanswered
Chris Westbrook posted this in #help-forum
Open in Discord
i have an app that fetches data in a client component. While it is fetching in the useEffect I have a loading state that I set to true. Once the data fetching and mutation is complete, I would like an aria announcement to indicate that the action was completeed successfully or whatever message was returned from the action in useFormState. Everything works fine if I don't engage the loader, but as soon as i do all my other aria announcements go silent. Has anyone dealt with this and can suggest a workaround?

0 Replies