Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't the "use client" inside CreateNote expose the pocketbase endpoint to the client/public #4

Open
themegabyte opened this issue Nov 2, 2022 · 1 comment

Comments

@themegabyte
Copy link

Hello Jeff!

Thank you for all the hard work you have put in your videos. They are my go to for leasure and to learn something new.

IN your latest one: https://www.youtube.com/watch?v=__mSgDEOyv8

I noticed that when you create a note you make a fetch request from the client, I am correct to assume this URL will be exposed to the public?

Link to the line:
https://github.com/fireship-io/next13-pocketbase-demo/blob/main/app/notes/CreateNote.tsx#L20

Thanks again to Jeff (and to all the people more smarter then me).

@ERmilburn02
Copy link

Yes, it would, if it wasn't for the fact that Jeff forgot to prevent the default behaviour of the form, causing it to refresh before it sends the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants