L
L
Little Vasya2019-05-22 14:05:28
Vue.js
Little Vasya, 2019-05-22 14:05:28

Render functions are called repeatedly?

I decided to write a functional component using the HOC pattern, when checking what is displayed in the console inside the render function, it is called twice, debugging does not help

render (h, context) {
      console.log('TEST')
      function approachComponentList () {
        const items = context.props.items
        if (!items) return null
        return Component
      }
...

5ce52cf5eba1b295063922.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question