laravel-vuejs-jwt-auth icon indicating copy to clipboard operation
laravel-vuejs-jwt-auth copied to clipboard

How to handle this Vue Warning "Error when evaluating expression auth.user.profile.*"

Open brickgale opened this issue 8 years ago • 0 comments

This not an issue on the current build of branch 1.0 but was wondering if ever you are now on Dashboard or any child component on vue router, it seems that it will render an error when route go since DOM will be rendered first before the http call on parent component, App.vue, auth.check() call. My problem is that how should we wait for the on ready function call of auth.check() on a child component route when we display something on template {{ auth.user.profile.* }} gets an error. (P.S this error won't really break the process but it's just something that I'm wondering how to handle it better)

brickgale avatar Feb 03 '17 10:02 brickgale