Skip to content

Commit

Permalink
Merge pull request #268 from relay-tools/relay-v16-forceupdate-refactor
Browse files Browse the repository at this point in the history
support relay v16 + refactor useForceUpdate + react v18 strict
  • Loading branch information
morrys authored Jan 11, 2024
2 parents 6565bfb + 9fb619c commit 3616d93
Show file tree
Hide file tree
Showing 15 changed files with 1,321 additions and 142 deletions.
27 changes: 6 additions & 21 deletions __tests__/ReactRelayQueryRenderer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ describe('ReactRelayQueryRenderer', () => {
id: '4',
name: 'Zuck',
username: 'Zuck',
__isWithinUnmatchedTypeRefinement: false,

__id: '4',
__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand All @@ -309,7 +309,7 @@ describe('ReactRelayQueryRenderer', () => {
id: '4',
name: 'Zuck',
username: 'Zuck',
__isWithinUnmatchedTypeRefinement: false,

__id: '4',
__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -356,7 +356,7 @@ describe('ReactRelayQueryRenderer', () => {
id: '4',
name: 'Zuck',
username: undefined,
__isWithinUnmatchedTypeRefinement: false,

__id: '4',
__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand All @@ -377,7 +377,7 @@ describe('ReactRelayQueryRenderer', () => {
id: '4',
name: 'Zuck',
username: 'Zuck',
__isWithinUnmatchedTypeRefinement: false,

__id: '4',
__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -431,7 +431,7 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,
__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -479,7 +479,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -532,7 +531,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -576,7 +574,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -706,7 +703,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand All @@ -732,7 +728,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -800,7 +795,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand All @@ -826,7 +820,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -879,7 +872,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -939,7 +931,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '6',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -1011,7 +1002,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -1048,7 +1038,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -1534,7 +1523,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -1588,7 +1576,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand All @@ -1605,7 +1592,6 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
Expand Down Expand Up @@ -1658,7 +1644,7 @@ describe('ReactRelayQueryRenderer', () => {
data: {
node: {
id: '4',
__isWithinUnmatchedTypeRefinement: false,

__fragments: {
ReactRelayQueryRendererTestFragment: {},
},
Expand Down Expand Up @@ -2280,7 +2266,6 @@ describe('ReactRelayQueryRenderer', () => {

__fragmentOwner: owner.request,
__id: '4',
__isWithinUnmatchedTypeRefinement: false,
},
},
retry: expect.any(Function),
Expand Down
Loading

0 comments on commit 3616d93

Please sign in to comment.