Using "use server"; But My Code Is Still Showing On Client. Why?
I'm trying to implement the new "use server"; comment to force parts of my code to run on the server. But it doesn't appear to be working.
Here's an example. I have a AuthService.ts file that uses Supabase Auth. I'm trying to force the "delete user" code to run on the server. Here's the code:
My expectation, is that the code inside of the try block would run on the server.
But if I run
Shouldn't the code below "use server"; in the try block NOT be visible in Chrome?
Am I doing something wrong? Or is this a bug?
Thanks,
Chris
Here's an example. I have a AuthService.ts file that uses Supabase Auth. I'm trying to force the "delete user" code to run on the server. Here's the code:
My expectation, is that the code inside of the try block would run on the server.
But if I run
npm run dev and look at my AuthService.ts file in the Chrome Dev Tools Network tab, this is what I see...Shouldn't the code below "use server"; in the try block NOT be visible in Chrome?
Am I doing something wrong? Or is this a bug?
Thanks,
Chris
