docs: Fix Flutter client imports, client exception example, and the real-time tutorial for 4.0 - #806
Open
FXschwartz wants to merge 4 commits into
Open
Conversation
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.
client.dart(docs: Flutter snippets import client from main.dart, which no longer exports it #794): rc.2 moved client setup out ofmain.dartintolib/client.dartwith aninitializeClient()thatmain()awaits (refactor: Extract client setup into client.dart in template serverpod#5658). Snippets that importedclientfrommain.dartno longer compiled. Fixed in the build-your-first-app pages, working-with-endpoints, the project tree, and the Pixorama tutorial.initialize*SignIn()inmain()afterclient.auth.initialize(); that call is now ininitializeClient(). Updated the instructions and snippets, plus the related Google troubleshooting and customizations notes and the legacy-auth migration guide.ServerpodClientExceptionis sealed with onlymessage, so thestatusCode == -1example did not compile. The page now describesServerpodClientHttpException(withServerpodClientUnknownHttpExceptionfor unmapped codes such as 413) andServerpodClientNetworkException, and the example catches those. Also updated the quoted error in the Google troubleshooting page, sincetoString()prints the runtime type.--miniand the Mini guide are gone. The tutorial now creates the project with the database deselected, removes the template'sgreetingsfeature instead of a non-existentexample.spy.yaml, and uses one runningserverpod startinstead of twoserverpod generatesteps. Thecreatereference intro no longer advertises--template mini.Markdownlint passes on all changed files except for nine pre-existing findings on the Facebook setup page, outside the edited section.
Fixes #794, fixes #795, fixes #797.