score:1
Accepted answer
you're callback function in the settimeout is not a generator function. hence, you cannot use yield within it.
settimeout(function *() {
yield put(showpermissionsneededwall('please log in', null));
readtimeloginboxshown();
}, 1000 * show_login_wall_after_in_seconds);
should be able to help you
Source: stackoverflow.com
Related Query
- Why does 'yield' throw an error when used twice in saga?
- Why does react hook throw the act error when used with fetch api?
- Why does React throw an error when setState method used in a class constructor?
- Why does defineMessages from react-intl throw an error when passing in a object reference?
- Why does Typescript throw an error when typing Redux-saga call parameter - TS2339
- Why does the React hook useRef throw an error when used?
- Why does jest-dom give the error "TypeError: expect(...).not.toBeVisible is not a function" when I use it
- Why does the render function in react is called twice when using the component strategy?
- Why does data from my api only display once and when I refresh the page it gives an error
- Why does react re-render twice when using the state hook (useState)?
- Property 'then' does not exist on type 'RelayObservable<unknown>'. when I try to fetch data using relay in react. I don't know why this error come
- Why useState is throwing error when used in main App functional component?
- Why does my ReactJS app throw a CORS error for http requests although they complete successfully in Postman app?
- Why does error ';' expected occur in my app.js file when no semi-colon should be necessary?
- React | why does .map work when .forEach creates a ' Maximum call stack size exceeded' error
- Why does my component render twice when using React's Context API and the useEffect hook?
- Why Yup string validation doesn't throw error when it's an object?
- Why does adding two if statements to my const throw an error
- Why does eslint throw an error on a require statement?
- why does next.js return error when calling a method of array that is not assigned to a variable
- why Leaflet throw me this Error when im renderin in react?
- Why am I getting an error that a file in Firebase Storage doesn't exist but it actually does when you follow the link?
- Why does error appear when I try to iterate array of objects in my react.js component?
- In ReactJS, why does `setState` behave differently when called synchronously?
- When using create-react-app why does the development server keep disconnecting?
- Why does this error exist: "Invariant Violation: Cannot update during an existing state transition"
- Why does an error result in a blank screen instead of a message?
- Why does useState cause the component to render twice on each update?
- Why is IE8 getting a script error when using Facebook's React.js
- Why does the 'useState' hook invoke the initial state when it's a function reference?
More Query from same tag
- Error: Cannot read property 'state' of undefined, struggeling to get frontend to work
- Difference between export class and just class for react in declaration
- How to create a tooltip "copied to clipboard" upon clicking copy button in reactjs
- Webpack and Nodejs isomorphic require with absolute path
- webpack replace values in code with values from json file
- Run function to update state on component constructor (and later)
- gatsby-image-background using v3 gatsby-image
- Can't access state from parent component method
- How to collapse a bootstrap navbar onlick within a React app?
- (Gatsby + Prismic): Content Relationship URLs
- npm start is not working in cmd and it is showing error as shown in image?
- Why intersection observer triggers on component mount?
- Converting flat array of object to array of nested objects
- Gatsby Js Pagination : start root page at desired page
- Invalid hook call. How to set a value with react axios get call?
- TypeError: this.state.posts.map is not a function, i don't know why
- How to apply custom theme in material ui
- When should I be using icepick.merge over lodash.merge
- React Electron App built with asar on gitlab runner creates JavaScript errors
- React useState - file Reader is not updated
- ReactJS append dynamically columns into rows in image gallery
- Jest Testing - Unexpected token Error
- No route registered for static file in Azure App Service
- how to scale down absolute positioned elements in the right way using CSS
- How to display value in real time without refresh page with React and SocketIO?
- react router navigation image with text link not working properly
- i facing uncaught error while implementing redux in react application using @reduxjs/toolkit?
- Customizing Ant Design theme
- Get pathname of from where user clicked in Next.JS
- My timer won't start and Im not sure why?