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

Creating a new highlight removes highlights which have not been saved to the server #150

Closed
robertknight opened this issue Oct 19, 2016 · 3 comments

Comments

@robertknight
Copy link
Member

robertknight commented Oct 19, 2016

Steps to reproduce

  1. Activate Hypothesis on a page
  2. Severely throttle the network connection (enough that you can perform step 4 before the network request triggered by step 3 has completed)
  3. Select a piece of text and click 'Highlight' to create a highlight
  4. Select a different piece of text and click 'Highlight' to create a second highlight. (You can tell if the highlight created at step 3 has been saved to the server yet by looking at whether Reply/Edit actions are displayed underneath it in the sidebar)

Expected behaviour

The highlight created in step 3 should continue to exist after step 4

Actual behaviour

The highlight created in step 3 is removed in step 4

Browser/system information

Tested with Chrome v55 and Hypothesis v0.46

@robertknight
Copy link
Member Author

The workaround for users is to wait until the highlight is saved, indicated by the Edit / Delete / Reply etc. actions appearing underneath the highlight in the sidebar.

@jonjitsu
Copy link

I experience this bug so much the extension is unusable. It is as though once you hit a certain number of highlights no more can be created for the page.

@robertknight
Copy link
Member Author

This issue has been fixed. The code which autosaves new highlights to the server was rewritten:

const autosaveNewHighlights = () => {
.

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

No branches or pull requests

3 participants