Skip to content
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

Refactor the React logic and introduce Fragment #70

Merged
merged 3 commits into from
Oct 15, 2018

Conversation

yodahuang
Copy link
Contributor

  • Export a Fragment of GraphGL from Sidebar and reuse it in the templates. Previously they're all copy-pasted, which makes making changes very hard
  • Eliminated all the spread syntax (...) used in the Templates. The nested element usually does not need all the information that the parent component requested. Pass the required information by React property by hand instead of just use spread syntax make the code easier to read and understand what is actually used

@yodahuang
Copy link
Contributor Author

Not sure why Codacy keeps telling me there should be a new line... The problem should have been fixed in my 4485418, and it looks good on my local machine with ESLint. I even added an extra line but it does not help...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants