Replies: 1 comment
-
I change the original api code to this:
^^^ This just sends a blank email.. while the original code gave errors because the .map wouldn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This is related to a previous topic that apparently worked, but it also created other problems
I have a function that sends information to send an email, but when the api page receives that information, apparently is receiving an object, instead of an array of objects.
^^^ How can I fix that?
I needed to put a variable on a useMemo function, so that the useCallback function could work, so that the useEffect could work... and apparently the useMemo changes the data from array to object, and now the api page is sending blank emails.
What is the best way to fix it?
from the api page this is the code that breaks because .map doesn't work:
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions