Replies: 1 comment
-
Hi Alibek, Thank you for reaching out! I am glad to hear that you are expanding the features of Folio for your needs. Currently, Folio provides an
All these observers are invoked within the You can base your implementation of the observer on the existing internal observer structure within Folio. If you encounter any hurdles or need further assistance, please do not hesitate to reach out to me. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Josemi,
I greatly appreciate your work on this project. I'm currently expanding its features for myself to include more create, modify, and remove capabilities. Given the complexity and variety of actions that can modify the state, it's kind of impractical for me to sprinkle
addHistory()
calls throughout the codebase. As part of this, I'm facing challenges with the undo/redo functionality and need to track changes more dynamically.Challenge:
I've tried to implement an observer-based history tracking for
board.elements
, but I'm struggling to directly manipulate the state post-update without causing unnecessary re-renders or additional history entries.Question:
Is there a way to implement an observer function that can show me previous and current values and allow me to modify them directly on the board? If such a method doesn't exist, do you have any insights on how to create this functionality?
Any suggestions or guidance would be immensely helpful.
Thanks for your time and assistance.
Best regards,
Alibek
Beta Was this translation helpful? Give feedback.
All reactions