美文网首页
2023-01-18 [Vue warn]: Maximum r

2023-01-18 [Vue warn]: Maximum r

作者: 一块小板子 | 来源:发表于2023-01-17 14:27 被阅读0次

    Maximum recursive updates exceeded in component
    组件中超过最大递归更新


    image.png
    [Vue warn]: Maximum recursive updates exceeded in component <AppNavigation>. 
    This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. 
    Possible sources include component template, render function, updated hook or watcher source function. 
    

    后来发现是我在props里写了.reverse()
    :data="navigation.reverse()"

    解决方案:
    提前reverse(),不要写在props中

    相关文章

      网友评论

          本文标题:2023-01-18 [Vue warn]: Maximum r

          本文链接:https://www.haomeiwen.com/subject/iunthdtx.html