You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I visit my deployed application and look at a call to a 'use server' function in the network inspector, I see an endpoint like /_server/?id=c_68ih0e&name=%24%24function0.
I was curious how the id and name parameters were determined, and what the implications of those determinations are for deployment.
For instance, if I add a 'use server' function above the one this is calling, does this function become function1? If the body of the function changes, does the id change?
Most importantly: if these parameters change, what happens to a stale client that is still running old client code?
Is there a way to determine these function names deterministically? Something like 'use server <name>'. I attempted using non-anonymous functions but it didn't appear to change anything.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I visit my deployed application and look at a call to a
'use server'
function in the network inspector, I see an endpoint like/_server/?id=c_68ih0e&name=%24%24function0
.I was curious how the
id
andname
parameters were determined, and what the implications of those determinations are for deployment.For instance, if I add a
'use server'
function above the one this is calling, does this function becomefunction1
? If the body of the function changes, does theid
change?Most importantly: if these parameters change, what happens to a stale client that is still running old client code?
Is there a way to determine these function names deterministically? Something like
'use server <name>'
. I attempted using non-anonymous functions but it didn't appear to change anything.Beta Was this translation helpful? Give feedback.
All reactions