Skip to content

Add a tip about "use server" to action docs #1044

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

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

amirhhashemi
Copy link
Collaborator

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

This PR adds a callout about "use server" to the Actions guide and the action API reference.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Jan 29, 2025

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 9f70230
🔍 Latest deploy log https://app.netlify.com/sites/solid-docs/deploys/679a452d704bf90008f7365f
😎 Deploy Preview https://deploy-preview-1044--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 29, 2025

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit 461ac96
🔍 Latest deploy log https://app.netlify.com/sites/solid-docs/deploys/679a453407fdfa000816654b
😎 Deploy Preview https://deploy-preview-1044--solid-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@LadyBluenotes LadyBluenotes merged commit f2a0942 into solidjs:main Jan 29, 2025
8 checks passed
@AlexErrant
Copy link

Sorry I'm a noob; what does this mean in the context of a Solid Start action?

use the "use server" directive to leverage server-side caching

Actions are for mutations, and I don't understand what server-side caching has to do with mutations. Perhaps a mutation could invalidate a cache key, but I don't think that's specific to server side caches? Also the invalidation would need to be explicit, so I don't think simply adding "use server" would do that.

@amirhhashemi
Copy link
Collaborator Author

@AlexErrant Thank you for reporting this. I think you are right. I'm rewriting this page and will this issue as well: #1179

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

Successfully merging this pull request may close these issues.

3 participants