Open anthonymzupancic opened 1 year ago
Hi, please checkout some previous discussion here, hope it solves your issue!
import 'react-folder-tree/dist/style.css'
const FolderTree = dynamic(() => import('react-folder-tree'), { ssr: false })
const justData = { name: 'All Cryptos', children: [ { name: 'Bitcoin', url: 'root/Bitcoin', _id: 1, checked: 0 }, { name: 'Etherium', url: 'root/Etherium', _id: 2, checked: 0 }, { name: 'Polkadot', url: 'root/Polkadot', _id: 3, checked: 0 }, { name: 'POW', children: [ { name: 'Bitcoin', url: 'root/Bitcoin', _id: 5, checked: 0 }, { name: 'Litecoin', url: 'root/Litecoin', _id: 6, checked: 0 }, { name: 'Bitcoin Cash', url: 'root/Bitcoin Cash', _id: 7, checked: 0 } ], url: 'root/POW', _id: 4, checked: 0, isOpen: true }, { name: 'Public Chains', children: [ { name: 'Ripple', url: 'root/Ripple', _id: 9, checked: 0 }, { name: 'Chainlink', url: 'root/Chainlink', _id: 10, checked: 0 } ], url: 'root/Public Chains', _id: 8, checked: 0, isOpen: true } ], url: 'root/All Cryptos', _id: 0, checked: 0, isOpen: true }
Thanks for putting this package together; it's exactly what I need!
I have it loaded in and implemented so it 'works', however anytime I refresh my browser or navigate to the page I'm using the component on it throws me the following error:
If I remove the component > reload my localhost > add the component/save => it works Then I refresh my browser or navigate around and the error is thrown.