You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to improve the performance of my components in the Options API. That's when I read about getting the previous value that can be a performance optimization when using Objects/Arrays.
This issue does not occur in the Composition API.
The text was updated successfully, but these errors were encountered:
This type is used in the Options and Composition API. I think the type computedGetter should also include this parameter, but only for the Options API.
Vue version
3.5.13
Link to minimal reproduction
https://play.vuejs.org/#eNqFUstOwzAQ/BXLlxapBKHCpYRKPHqAAyDgaAmFZpumOI5lr0OkKP/O2mmSIvG4xPbOZD0z64ZfaR1VDviCx3Ztco1LoRiDWpcGWQqbxElkja8xliaYTI/6E2MG0Bk1nhkrbLZgk1WdFFoCK8DaJINJj7fdpp1167ostENIF2MHBItTbaDKS2cPburoypYSIllmI+XiP0bkW36n7WXjNrcRCR6wXp5f6BOfDIHQAYEsJQghnjhXpJxVx0WZgrwUnNoIvozfTYBvKScy1fg4WNv25ZvRbxOcEuavOWgtFJ9xtGRkk2fRzpaKBhNSENzHlUswjxpzMir4kJvgiZTl532ooXGwD5j+2cL644f6zta+JviTAQumAsEHDBOTAXbw6uUBatoPIBl2kth/gM9AQ3BeY0e7diol2Qe8oPau8E8sV9mrXdUIyvamvNAwgsAXnF6nT+4366PceXS2H11LKb5VYHxPCnAenUenc95+ATR17z8=
Steps to reproduce
Create a data/computed in the Options API. In the computed access the
previous
value.What is expected?
The
previous
in the computed, should return the actual previous value of the computed.What is actually happening?
The
previous
variable has the Component instance.System Info
Any additional comments?
I wanted to improve the performance of my components in the Options API. That's when I read about getting the previous value that can be a performance optimization when using Objects/Arrays.
This issue does not occur in the Composition API.
The text was updated successfully, but these errors were encountered: