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

#6 Prevent Toggling All Unlinked Refs on Click #19

Merged
merged 1 commit into from
Feb 14, 2021

Conversation

cofinley
Copy link
Owner

Unlinked refs were being toggled on every page after a single click on
one. This was because the element in Editor.js was not
re-rendering as expected. It was sticking around and the hooks state
was shared among other pages' elements. The calculation
of the unlinked references was only being done on page load, but it was
still unwelcome. Add key prop to differentiate the instances among pages.

Also fix bug where linked references were not showing because of a lapse
syncing code changes with redux.

Closes #6

Unlinked refs were being toggled on every page after a single click on
one. This was because the <References> element in Editor.js was not
re-rendering as expected. It was sticking around and the hooks state
was shared among other pages' <References> elements. The calculation
of the unlinked references was only being done on page load, but it was
still unwelcome. Add key prop to differentiate the instances among pages.

Also fix bug where linked references were not showing because of a lapse
syncing code changes with redux.
@cofinley cofinley added this to the v1.0 milestone Feb 14, 2021
@cofinley cofinley self-assigned this Feb 14, 2021
@cofinley cofinley merged commit b824d30 into master Feb 14, 2021
@cofinley cofinley deleted the bugfix/6-unlinked-references-all-expand branch February 14, 2021 03:19
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.

Unlinked References All Expand
1 participant