Error:ADD_QUESTION_BEGIN' is not defined
Solution
In reducer.js
import ADD_QUESTION_BEGIN in reducer.js
import {
ADD_QUESTION_ERROR,
ADD_QUESTION_SUCCESS,
ADD_QUESTION_BEGIN,
} from "./actions"
in action.js
export const ADD_QUESTION_BEGIN = "ADD_QUESTION_BEGIN"
Error: Uncaught (in promise) TypeError: addQuestion is not a function
In appcontext.js
<AppContext.Provider
value={{
addQuestion
{children}
</AppContext.Provider>
)
Error:state.clients.result is undefined
in reducer.js mention clients variable
ERROR:Feedback is not defined
============or===================
if (!Feedback || Feedback.length === 0) {
return <p>No feedback found.</p>;
}
ERRORS
Cannot read properties of undefined (reading 'length')
TypeError: Cannot read properties of undefined (reading 'length'
my code is
<h5>Total Feedback:{myfeedback.length} </h5>
solution
<h5>Total Feedback:{myfeedback?myfeedback.length:null} </h5>
How to debug if output in server console not shown
in server console
solution:
CASE2: how to debug not show output
my code is
In client side
router
error :
output:item: '[object Object]'
Solution
in appcontext
controller function
===========================
Top comments (0)