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

fix: Cannot read property ‘slice’ of undefined error #152

Merged
merged 1 commit into from
May 1, 2020

Conversation

michaeltaranto
Copy link
Contributor

@michaeltaranto michaeltaranto commented May 1, 2020

With the editor now checking the validity of the cursor position on every cursor activity, there is a race condition where the store has a mismatched combination of code and cursor.

Now when the editor notifies of a cursor change, it sends the current code with the payload to ensure the validity check always has all the information required.

Fixes #151

@michaeltaranto michaeltaranto requested a review from a team as a code owner May 1, 2020 08:57
@michaeltaranto michaeltaranto changed the title fix(CodeEditor): Ensure code & cursor position are always in sync fix: Cannot read property ‘slice’ of undefined error May 1, 2020
@michaeltaranto michaeltaranto merged commit 290adac into master May 1, 2020
@michaeltaranto michaeltaranto deleted the fix-cursor-activity branch May 1, 2020 09:03
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.

0.17.2 crashes when pressing Enter on editor
2 participants