-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve placeholder rendering and error handling
- Loading branch information
1 parent
7a3f734
commit c686e0a
Showing
22 changed files
with
203 additions
and
181 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
.../gql-mutation/__tests__/__snapshots__/mutation-with-query/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading Messages | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading Messages | ||
</span> | ||
</span> | ||
</span> | ||
</div> |
28 changes: 14 additions & 14 deletions
28
.../gql-mutation/__tests__/__snapshots__/mutation-with-query/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading Messages | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading Messages | ||
</span> | ||
</span> | ||
</span> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<h1> | ||
Messages | ||
</h1> | ||
<button> | ||
Add | ||
</button> | ||
</div> | ||
<h1> | ||
Messages | ||
</h1> | ||
<button> | ||
Add | ||
</button> | ||
</div> |
This file contains 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
14 changes: 8 additions & 6 deletions
14
.../gql-query/__tests__/__snapshots__/isomorphic-placeholder/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
</span> | ||
</span> | ||
</span> | ||
</div> |
22 changes: 11 additions & 11 deletions
22
.../gql-query/__tests__/__snapshots__/isomorphic-placeholder/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
</span> | ||
</span> | ||
</span> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
...ts/gql-query/__tests__/__snapshots__/isomorphic-variables/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
...ts/gql-query/__tests__/__snapshots__/isomorphic-variables/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello John! | ||
</span> | ||
</div> | ||
<span> | ||
Hello John! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
src/components/gql-query/__tests__/__snapshots__/isomorphic/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
src/components/gql-query/__tests__/__snapshots__/isomorphic/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
...mponents/gql-query/__tests__/__snapshots__/request-policy/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
22 changes: 11 additions & 11 deletions
22
...mponents/gql-query/__tests__/__snapshots__/request-policy/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello John! | ||
</span> | ||
<button> | ||
Toggle | ||
</button> | ||
</div> | ||
<span> | ||
Hello John! | ||
</span> | ||
<button> | ||
Toggle | ||
</button> | ||
</div> |
14 changes: 8 additions & 6 deletions
14
...gql-query/__tests__/__snapshots__/server-only-placeholder/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
</span> | ||
</span> | ||
</span> | ||
</div> |
22 changes: 11 additions & 11 deletions
22
...gql-query/__tests__/__snapshots__/server-only-placeholder/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
<div> | ||
<span | ||
id="GENERATED-0" | ||
> | ||
<span> | ||
Loading... | ||
</span> | ||
</span> | ||
</span> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
...s/gql-query/__tests__/__snapshots__/server-only-variables/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
...s/gql-query/__tests__/__snapshots__/server-only-variables/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello John! | ||
</span> | ||
</div> | ||
<span> | ||
Hello John! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
src/components/gql-query/__tests__/__snapshots__/server-only/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
16 changes: 8 additions & 8 deletions
16
src/components/gql-query/__tests__/__snapshots__/server-only/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> | ||
<span> | ||
Hello world! | ||
</span> | ||
</div> |
8 changes: 5 additions & 3 deletions
8
...onents/gql-query/__tests__/__snapshots__/update-variables/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> |
22 changes: 11 additions & 11 deletions
22
...onents/gql-query/__tests__/__snapshots__/update-variables/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
<div> | ||
<noscript | ||
id="GENERATED-0" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-1" | ||
style="display:none" | ||
> | ||
<div> | ||
<span> | ||
Hello John! | ||
</span> | ||
<button> | ||
Toggle | ||
</button> | ||
</div> | ||
<span> | ||
Hello John! | ||
</span> | ||
<button> | ||
Toggle | ||
</button> | ||
</div> |
Oops, something went wrong.