So I have struggled with this for a long time now. First you need the coresponding libraries npm i -g @babel/core@^7.2.2 npm i -g @babel/preset-env@^7.3.1 npm i -g @babel/preset-react@^7.0.0 npm i -g autoprefixer@^9.5.0 npm i -g babel-loader@^8.0.5 npm i -g css-loader npm i -g extract-text-webpack-plugin@next npm i -g generate-template-files npm i -g mini-css-extract-plugin npm i
The only solution I found is having this in the return statement of the reducer return { ...state ,[topic_id]:{ ...state[topic_id] ,matches:[ ...state[topic_id].matches ,subticket ] } } ; If there are other solutions, let me know please. The state structure looks like this
Install community edition here Install custom – location C:\mongodb Go create C:\data\db folder Go to C:\mongodb in command prompt Run mongod open another cmd.exe and run mongo Access http://localhost:27017/ to check
Recent Comments