Hi everyone.
I have a simple LiveView project, which let’s say has a list of links:
links: [link_1, link_2, link_3]
And I draw them in LiveView:
<%= for link in @links do %>
<a href="<%= link %>"> Link </a>
<% end %>
With a simple css attribute:
a:visited {
color: red
}
But when I change the links and send them through the wire, the visited
state doesn’t change. So if at the beginning I click “Link 1”, and live view changes it to “Link 6” which I never clicked on, it would still appear red.
How can I unset the visited
state?
Thank you!!