Skip to content

Commit 3ebf0d4

Browse files
committed
docs: make examples point to main instead of master
1 parent 9f6c992 commit 3ebf0d4

23 files changed

+57
-57
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: react-query tests
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- 'main'
77
- 'next'
88
- 'beta'
99
- '1.x'
@@ -35,8 +35,8 @@ jobs:
3535
publish-module:
3636
name: 'Publish Module to NPM'
3737
needs: test
38-
# publish only when merged in master on original repo, not on PR
39-
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x')
38+
# publish only when merged in main on original repo, not on PR
39+
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x')
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />
22

3-
![React Query Header](https://github.com/tannerlinsley/react-query/raw/master/media/repo-dark.png)
3+
![React Query Header](https://github.com/tannerlinsley/react-query/raw/main/media/repo-dark.png)
44

55
Hooks for fetching, caching and updating asynchronous data in React
66

docs/src/pages/examples/auto-refetching.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ toc: false
66

77
This example works best when ran locally so you can open 2 separate browsers or tabs at the same time and interact between them.
88

9-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/auto-refetching)
10-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/auto-refetching)
9+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/auto-refetching)
10+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/auto-refetching)
1111

1212
<iframe
13-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/auto-refetching?autoresize=1&fontsize=14&theme=dark"
13+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/auto-refetching?autoresize=1&fontsize=14&theme=dark"
1414
title="tannerlinsley/react-query: auto-refetching"
1515
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1616
style={{

docs/src/pages/examples/basic-graphql-request.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Basic w/ GraphQL-Request
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/basic-graphql-request)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/basic-graphql-request)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/basic-graphql-request)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/basic-graphql-request)
99

1010
<iframe
11-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/basic-graphql-request?autoresize=1&fontsize=14&theme=dark"
11+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/basic-graphql-request?autoresize=1&fontsize=14&theme=dark"
1212
title="tannerlinsley/react-query: basic-graphql-request"
1313
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1414
style={{

docs/src/pages/examples/basic.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: Basic
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/basic)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/basic)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/basic)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/basic)
99

1010
<iframe
1111
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/basic?autoresize=1&fontsize=14&theme=dark"

docs/src/pages/examples/custom-hooks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: Custom Hooks
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/custom-hooks)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/custom-hooks)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/custom-hooks)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/custom-hooks)
99

1010
<iframe
1111
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/custom-hooks?autoresize=1&fontsize=14&theme=dark"

docs/src/pages/examples/default-query-function.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Default Query Function
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/default-query-function)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/default-query-function)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/default-query-function)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/default-query-function)
99

1010
<iframe
11-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/default-query-function?autoresize=1&fontsize=14&theme=dark"
11+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/default-query-function?autoresize=1&fontsize=14&theme=dark"
1212
title="tannerlinsley/react-query: default-query-function"
1313
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1414
style={{

docs/src/pages/examples/focus-refetching.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Focus Refetching
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/focus-refetching)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/focus-refetching)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/focus-refetching)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/focus-refetching)
99

1010
<iframe
11-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/focus-refetching?autoresize=1&fontsize=14&theme=dark"
11+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/focus-refetching?autoresize=1&fontsize=14&theme=dark"
1212
title="tannerlinsley/react-query: focus-refetching"
1313
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1414
style={{

docs/src/pages/examples/load-more-infinite-scroll.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Load More / Infinite Scroll
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll)
99

1010
<iframe
11-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll?autoresize=1&fontsize=14&theme=dark"
11+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll?autoresize=1&fontsize=14&theme=dark"
1212
title="tannerlinsley/react-query: load-more-infinite-scroll"
1313
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1414
style={{

docs/src/pages/examples/nextjs.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: Nextjs SSG
44
toc: false
55
---
66

7-
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/nextjs)
8-
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/nextjs)
7+
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/nextjs)
8+
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/nextjs)
99

1010
<iframe
11-
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/nextjs?autoresize=1&fontsize=14&theme=dark"
11+
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/nextjs?autoresize=1&fontsize=14&theme=dark"
1212
title="tannerlinsley/react-query: nextjs"
1313
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1414
style={{

0 commit comments

Comments
 (0)