Repository navigation
Conversation
SandPod
reviewed
Nov 24, 2026
SandPod
left a comment
Contributor
There was a problem hiding this comment.
I have two comments. Otherwise it looks good!
| ``` | ||
|
|
||
| This starts your server, launches your Flutter app, and watches your code. When you make a change, Serverpod instantly regenerates the client, hot reloads the server, and reloads your app. | ||
| This starts your server, launches your Flutter app, and watches your code. When you save a change, Serverpod regenerates the client, hot reloads the server, and hot reloads your app. |
Contributor
There was a problem hiding this comment.
Question: Doesn't this say the same thing, only more detailed?
|
|
||
| The client handles the request, the response, and the JSON in between. Most calls follow this request-and-response shape. For live updates, Serverpod also has [streaming methods](./concepts/endpoints-and-apis/streaming) that keep a connection open so the server and app can push data to each other. | ||
|
|
||
| The app creates the client once, when it starts. If you add an endpoint while `serverpod start` is running, press **R** in its terminal to hot restart the app so the client includes the new endpoint. See [Running your server](./concepts/server-fundamentals/running-your-server#save-a-file-to-hot-reload) for what each kind of change needs. |
Contributor
There was a problem hiding this comment.
Question: This seems disruptive to the flow. Why don't we automatically hot reload the client when new endpoints are added? Could you check this with the framework team? If there is no strong reason for not hot reloading, perhaps we could add that and skip this instruction?
| By default, `serverpod start` watches your project. What happens when you save depends on the file: | ||
|
|
||
| - **Server code:** hot reloads, and restarts the server if the reload fails. | ||
| - **New endpoints:** regenerates the client and hot reloads, but the running app keeps the client it created at startup. Press **R** to hot restart the app before calling the new endpoint. New methods and signature changes on an existing endpoint need no extra step. |
Contributor
There was a problem hiding this comment.
Comment: Connected to the first question, can you validate there is a real reason it works this way before adding this instruction?
Roxie-32
marked this pull request as draft
December 4, 2026 03:48
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
Builders couldn't tell what to do after making a change, or where to run Serverpod commands. While
serverpod startruns, saving a file regenerates the code and hot reloads the server and the app. But the app creates its client once, at startup. So when you add a new endpoint, the running app can't call it until you press R to hot restart, and the docs didn't say so. How it works even suggested every change just works. The pages also disagreed on where to run commands: one said "anywhere inside your project folder", another said "in the server directory", and the rest said nothing. Testing showed that "anywhere" isn't true. Commands fail from folders nested too deep, so the accurate rule is "from your project's root folder or one of its package folders".The fix
Each change is applied to Next, 4.1.0 and 4.0.0.
serverpod generatein the server directory" to "from your project's root folder or one of its package folders".