-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
Version
2.5.13
Reproduction link
https://jsfiddle.net/5vze74yy/
Steps to reproduce
- Add render() and beforeUpdate() hook to the instance.
- Trigger data value change by any means
What is expected?
Per the API
https://vuejs.org/v2/api/index.html#beforeUpdate
beforeUpdate is supposed to be fired before render(), and state changes in this hook should not trigger additional re-renders.
What is actually happening?
beforeUpdate() is actually invoked after render() in current version 2.5.13.
This could result in infinite update loop, as state changes in beforeUpdate() will trigger another re-rendering.