I'm trying to access the URL params in the action function but unfortunately they are null. It looks like they are wiped when the form for the route is submitted. It works in the loader function no problem using:
const url = new URL(request.url)
const userHash = url.searchParams.get("id")
const userId = url.searchParams.get("ref")
Is there a simple way to access them in the action function. (I presume I don't have to pass data from the loader to the action via form hidden fields?