Skip to content

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

Merged
LadyBluenotes merged 2 commits intosolidjs:mainfrom
amirhhashemi:add-action-tip
Jan 29, 2025
Merged

Add a tip about "use server" to action docs#1044
LadyBluenotes merged 2 commits intosolidjs:mainfrom
amirhhashemi:add-action-tip

Conversation

@amirhhashemi
Copy link
Copy Markdown
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.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

@netlify
Copy link
Copy Markdown

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.

@netlify
Copy link
Copy Markdown

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
@AlexErrant
Copy link
Copy Markdown

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
Copy Markdown
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