How can I get react context in a dynamic route with getStaticProps? Cannot destructure property 'cartItems' of 'Object(…)(…)' as it is null

后端 未结 0 1881
臣服心动
臣服心动 2021-01-03 05:15

I have a dynamic route with GetStaticProps and I need to get React Context and it returns an error: Cannot destructure property \'cartItems\' of \'Object(...)(...)\' as it i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题