Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App.tsx:140 Uncaught TypeError: getCachingNodes is not a function #325

Open
vaynevayne opened this issue Aug 16, 2024 · 0 comments
Open

Comments

@vaynevayne
Copy link

getCachingNodes is not a function
TypeError: getCachingNodes is not a function

const { dropScope, clear, getCachingNodes } = useAliveController()

    useEffect(() => {
      console.log('prevPathname', prevPathname)

      const toChild = location.pathname.startsWith(prevPathname || '')
      console.log('toChild', toChild)
      const cachingNodes = getCachingNodes()
      console.log('cachingNodes', cachingNodes)
      if (!toChild) {
        if (cachingNodes.some(node => node.name === prevPathname)) {
          const reg = `${prevPathname}`
          console.log('reg', reg)

          dropScope(new RegExp(reg))
        }
      }
    }, [location.pathname])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant