Remote Functions: allow opt out of refresh.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
Describe the problem
Allow for commands and form remote functions to opt out of refreshing. Currently I have created a blank nothing query to handle this. But it feels like there should be something built in to opt out. For example I have a command for extendSession that doesn’t require any new data, only setting a cookie.
Describe the proposed solution
Add refreshNothing or similar to svelte kit to opt out of refreshing,
Alternatives considered
This is sort of solvable in useland by creating an empty query and specifying to refresh it, but it’s not obvious and require some (minor) overhead.
Importance
would make my life easier
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reading the existing SvelteKit remote-function handling for commands and forms, especially how refreshes are triggered; done means a remote function can explicitly opt out of refreshing without requiring a blank query, with coverage for the proposed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend-api-design, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100