-
Notifications
You must be signed in to change notification settings - Fork 66
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
Can I get the previous doc data in the Update event? #697
Comments
@mingz-unity in the newest Astronomy version you can access the old document in the beforeUpdate(e) {
e.oldDoc; // Do something with the previous document state
} |
Cool cool that's great. Yes I dig into the source code and found out. That's great thanks Luke. |
|
@s7dhansh thanks for letting me know that it doesn't work on the server. I've fixed it in |
@lukejagodzinski the new version has made the updates take a lot of time. Can you kindly check that? Can we have some way to make it faster when we have |
Ok, I will check that this week and try to improve performance
…On Sun, Sep 29, 2019, 4:53 AM Sudhanshu ***@***.***> wrote:
@lukejagodzinski <https://github.com/lukejagodzinski> the new version has
made the updates take a lot of time. Can you kindly check that? Can we have
some way to make it faster when we have disabledEvents for an update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#697?email_source=notifications&email_token=AAIAUXJWZLKLU34MLTMICKTQMAKBFA5CNFSM4GHWDWU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73GWLA#issuecomment-536242988>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIAUXOV2OW57TRWUIBV353QMAKBFANCNFSM4GHWDWUQ>
.
|
@lukejagodzinski sorry you can ignore that last comment. It was caused by something else locally. |
Hi coming from collection-hook and wonder if the same feature is available here:
When I am in one of those collection update events, can I have access to the previous value so I can do some change handling? I inspected the runtime class of "e" and it only contains the changed value not the original.
Is there anywhere I can get that?
Thanks
The text was updated successfully, but these errors were encountered: