-
Notifications
You must be signed in to change notification settings - Fork 1
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
Replace redux code by context API #79
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
f3c05ae
create handle error utils function
swh00tw b3e39b4
extract getSocialPostByCourseID
swh00tw fae80eb
extract createSocialPost
swh00tw d39037f
extract rest social API from redux
swh00tw fe4e984
extract user's related actions from redux
swh00tw 86945be
Merge branch 'refactor/minor-issues-clean-up' into remove-redux
swh00tw de862f3
extract utils function
swh00tw 5836eba
rename folders & files
swh00tw 94f6970
extract api calls
swh00tw f59a3c0
extract function
swh00tw 75eef3d
extract fetchers
swh00tw 5dc163a
move file
swh00tw eb39775
remove redux
swh00tw f9a0217
remoe redux package
swh00tw f6af546
unified states naming style
swh00tw 677e744
unified state naming style
swh00tw 2bcdb73
extract hover logic
swh00tw a2820b8
extract function
swh00tw 149bd7d
delete unnecessary function
swh00tw fccb3dc
delete unnecessary function
swh00tw 2c312c6
delete unnecessary function
swh00tw 77ee989
move states to provider
swh00tw 22968be
add courseTable provider
swh00tw debac5c
delete unnecessary functions
swh00tw d284441
unified API function style
swh00tw e49a74a
unified API calling style
swh00tw 05428ce
unified API calling style
swh00tw a178c26
move user related API to file
swh00tw ae2475d
move courseTable API to file
swh00tw 737d621
move courses API to file
swh00tw dc5b23c
navigate back to home after delete
swh00tw 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 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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Since we've gotten rid of redux, there will be more context providers in the future.
To prevent pyramid of doom, I suggest we can solve this based on one of the solutions here.
but ignore this comment, LOL