Skip to content

Commit d2b0c01

Browse files
committed
Merge remote-tracking branch 'origin/main' into nitedani/vike-react-sentry
2 parents 7a4d228 + 3a2d258 commit d2b0c01

8 files changed

Lines changed: 11 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Source code of following Vike React extensions: [Vike Docs > Extensions > React](https://vike.dev/extensions#react).
1+
Source code of following Vike React extensions: [Vike > Extensions > React](https://vike.dev/extensions#react).
22

33
See [packages/](packages/).

packages/vike-react-apollo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function Movies() {
249249
```
250250

251251
> [!NOTE]
252-
> The `<meta name="description">` tag is only shown to bots. See the explanation at [Vike Docs > `useConfig` > HTML Streaming](https://vike.dev/useConfig#html-streaming).
252+
> The `<meta name="description">` tag is only shown to bots. See the explanation at [Vike > `useConfig` > HTML Streaming](https://vike.dev/useConfig#html-streaming).
253253
254254
<br/>
255255

packages/vike-react-apollo/src/utils/assert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ export { assert }
33

44
function assertUsage(condition: unknown, message: string): asserts condition {
55
if (condition) return
6-
throw new Error('Wrong usage: ' + message)
6+
throw new Error('[vike-react-apollo] ' + message)
77
}
88

99
function assert(condition: unknown): asserts condition {
1010
if (condition) return
11-
throw new Error('You stumbled upon a vike-react-apollo bug, reach out on GitHub.')
11+
throw new Error('[vike-react-apollo] You stumbled upon a bug, reach out on GitHub.')
1212
}

packages/vike-react-query/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function Movies() {
226226
```
227227

228228
> [!NOTE]
229-
> The `<meta name="description">` tag is only shown to bots. See the explanation at [Vike Docs > `useConfig` > HTML Streaming](https://vike.dev/useConfig#html-streaming).
229+
> The `<meta name="description">` tag is only shown to bots. See the explanation at [Vike > `useConfig` > HTML Streaming](https://vike.dev/useConfig#html-streaming).
230230
231231
<br/>
232232

@@ -285,7 +285,7 @@ export default (pageContext) => ({
285285
```
286286

287287
> [!NOTE]
288-
> You can apply settings to all pages, a group of pages, or only one page. See [Vike Docs > Config > Inheritance](https://vike.dev/config#inheritance).
288+
> You can apply settings to all pages, a group of pages, or only one page. See [Vike > Config > Inheritance](https://vike.dev/config#inheritance).
289289
290290
<br/>
291291

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export function assert(condition: unknown): asserts condition {
22
if (condition) return
3-
throw new Error('You stumbled upon a vike-react-query bug, reach out on GitHub.')
3+
throw new Error('[vike-react-query] You stumbled upon a bug, reach out on GitHub.')
44
}

packages/vike-react-zustand/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,5 @@ The extension handles all the complexities of state transfer between server and
212212

213213
## See also
214214

215-
- [Vike Docs > State Management](https://vike.dev/store)
215+
- [Vike > State Management](https://vike.dev/store)
216216
- [Zustand Documentation](https://docs.pmnd.rs/zustand)
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
export { assert, assertUsage }
1+
export { assert }
22

33
function assert(condition: unknown): asserts condition {
44
if (condition) return
5-
throw new Error('You stumbled upon a vike-react-zustand bug, reach out on GitHub.')
6-
}
7-
8-
function assertUsage(condition: unknown, message: string): asserts condition {
9-
if (condition) return
10-
throw new Error('Wrong usage: ' + message)
5+
throw new Error('[vike-react-zustand] You stumbled upon a bug, reach out on GitHub.')
116
}

packages/vike-react/src/utils/assert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export { assertWarning }
33

44
function assert(condition: unknown): asserts condition {
55
if (condition) return
6-
throw new Error('You stumbled upon a vike-react bug, reach out on GitHub.')
6+
throw new Error('[vike-react] You stumbled upon a bug, reach out on GitHub.')
77
}
88

99
function assertWarning(condition: unknown, message: string) {

0 commit comments

Comments
 (0)