You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing a JS error which breaks the React app. It states
Warning: useEffect must not return anything besides a function, which is used for clean-up.
It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
useEffect(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
I believe I've pinpointed it to this line which was included in v1.3.13:
Seeing a JS error which breaks the React app. It states
I believe I've pinpointed it to this line which was included in v1.3.13:
See: https://github.com/newfold-labs/wp-module-ecommerce/blob/trunk/src/components/OnboardingScreen.js#L52-L55 & v1.3.12...v1.3.13#diff-fd672c79443c2dc41c55d1d45484f87c38f677499a7a938d75860dc61b947270R52-R55
The text was updated successfully, but these errors were encountered: