flow-playground icon indicating copy to clipboard operation
flow-playground copied to clipboard

Editor not saving all code

Open neil-ptr opened this issue 2 years ago • 0 comments

Describe the bug When quickly typing out code on an account or transaction and then switching to a different account or transaction and then coming back, sometimes there are pieces near the end of the code that are missing

To Reproduce Steps to reproduce the behavior: Follow steps 1-5 in https://github.com/onflow/flow-playground/issues/286 6. On the transaction, delete everything and quickly type out import BasicToken from 0x01 and switch to account 1 7. come back to the transaction you just edited and there should be code missing 8. Might need to repeat 6 and 7 since the issue is inconsistent on when it happens

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information): OS: MacOS Browser: Chrome Version Version 103.0.5060.134 (Official Build) (x86_64)

Additional context

  • Only seems to appear in production (could not reproduce locally) and a part of the solution might be related to https://github.com/onflow/flow-playground/issues/284
  • related https://github.com/onflow/flow-playground/issues/260

neil-ptr avatar Aug 04 '22 21:08 neil-ptr