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

Skip Action to become part of history #52

Open
imaneumma opened this issue Aug 4, 2023 · 1 comment
Open

Skip Action to become part of history #52

imaneumma opened this issue Aug 4, 2023 · 1 comment

Comments

@imaneumma
Copy link

Hi,

Is there any way to skip an action/actions on an object to become part of fabic-history stack?
e.g
If a number of items are allowed to be added in the canvas but a default object should not be affected by undo/redo. It should remain there and undo/redo should work only for the actions on rest of the items

@DigitalFlux
Copy link

I use offHistory() and onHistory() for this. I recently found that an app I'm writing was thrashing memory because fabric-history was saving every object added during the loading of a canvas from file (oof!), and I was able to get loading times down from approx. 8 seconds to about 300ms. Being able to turn it off during loading made a huge difference.

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

2 participants