M
M
myskypesla2018-08-10 02:32:56
JavaScript
myskypesla, 2018-08-10 02:32:56

How to not show undefined until the data is loaded from the server?

There is a sidebar component in which there is a small avatar and a first name + last name
. I pull the whole thing through the vuex action with the created hook, but undefined is shown for half a second and only then only the data from the server. Could you tell me how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-08-10
@myskypesla

Show preloader or placeholder before data is loaded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question