Skip to content

Comments

change useeffect to not be async#9

Open
davidsilvamota wants to merge 1 commit intoTA-Geoforce:masterfrom
davidsilvamota:fix-async-useeffect
Open

change useeffect to not be async#9
davidsilvamota wants to merge 1 commit intoTA-Geoforce:masterfrom
davidsilvamota:fix-async-useeffect

Conversation

@davidsilvamota
Copy link

Using async functions in useEffect is not supported anymore.

The function in useEffect should return nothing or a function (cleanup). This change fixes the problem (destroy is not a function)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant