Skip to content

Commit

Permalink
fix: remove Discord links
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 15, 2023
1 parent fd9096e commit 117df16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
React 18 Streaming. Full-fledged & Easy.

Follow: [Twitter > @brillout](https://twitter.com/brillout)
Chat: <a href="https://discord.com/invite/H23tjRxFvx">Discord > Cubes > <img src="/images/hash.svg" height="17" width="19" valign="middle" alt="hash"/>react-streaming</a>

> Unfamiliar with React 18 Streaming? Check out [Dan's article about SSR and Streaming](https://github.com/reactwg/react-18/discussions/37).
Expand Down
2 changes: 1 addition & 1 deletion src/utils/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function assert(condition: unknown, debugInfo?: unknown): asserts condition {
const internalError = createErrorWithCleanStackTrace(
[
`${internalErrorPrefix} You stumbled upon a bug in ${projectInfo.projectName}'s source code.`,
`Reach out at ${projectInfo.githubRepository}/issues/new or ${projectInfo.discordInviteToolChannel} and include this error stack (the error stack is usually enough to fix the problem).`,
`Reach out at ${projectInfo.githubRepository}/issues/new and include this error stack (the error stack is usually enough to fix the problem).`,
'A maintainer will fix the bug (usually under 24 hours).',
`Do not hesitate to reach out as it makes ${projectInfo.projectName} more robust.`,
debugStr
Expand Down
3 changes: 1 addition & 2 deletions src/utils/projectInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ export const projectInfo = {
projectName: 'react-streaming' as const,
projectVersion: PROJECT_VERSION,
npmPackageName: 'react-streaming' as const,
githubRepository: 'https://github.com/brillout/react-streaming' as const,
discordInviteToolChannel: 'https://discord.com/invite/H23tjRxFvx' as const
githubRepository: 'https://github.com/brillout/react-streaming' as const
}

// Trick: since `utils/asserts.ts` depends on this file (`utils/projectInfo.ts`), we can have confidence that this file is always instantiated. So that we don't have to initialize this code snippet at every possible entry. (There are a *lot* of entries: `client/router/`, `client/`, `node/`, `node/plugin/`, `node/cli`, etc.)
Expand Down

0 comments on commit 117df16

Please sign in to comment.