-
-
Notifications
You must be signed in to change notification settings - Fork 60
[proposal] improve rendering for query without incremental data #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b0ef86f
added forceUpdate skip by checking is_final
morrys 4beaa71
Merge branch 'master' into issue-238-render
morrys 07170b8
fix eslint
morrys a617bbd
is_final server
morrys 3d8f27b
revert is_final and added hasNext
morrys 2d1fe26
Update server.js
morrys 589dff5
Update createRelayEnvironment.ts
morrys a300d32
fix poll query
morrys 6667593
optimize fetch render in FragmentResolver
morrys b63a042
Update useRefetchableFragment-test.tsx
morrys ba2c8d7
Update FetchResolver.ts
morrys a1225ff
fix render for refetch
morrys b534aec
optimize subscribe fragment render
morrys 65f4730
adapt example
morrys ffac4db
update tests
morrys a82fd1e
call forceupdate only when hooks is mounted
morrys b5d5add
version 8.0.0-rc.1
morrys 0491955
Update package.json
morrys 986e0e1
move refreshUpdate, useful for incremental data, as I don't update fr…
morrys 675e3a0
version 8.0.0-rc.2
morrys 6831a5a
fix query polling
morrys 5695a87
added test for polling & version 8.0.0-rc.3
morrys a466689
refactor resolveUpdate & revert check is loading on fragmentresolver
morrys 6ebc4db
version 8.0.0
morrys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deepening the proposed solution for defer facebook/relay#3121 (comment)
prefer to change the logic using hasNext (spec-complaint) instead of is_final (FB specific):
In this way, no code modification is needed to optimize the render in case an incremental query is not used but it could be a breaking change for those using it with other specifications