Replies: 1 suggested answer 1 reply
-
Redis is a server-side only library, you can't use it in the same environment as browser interfaces. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to set the value of a textarea element to Redis cache, and on page reload the same value will be displayed in the textarea element.
How do I fix the following to get what I want?
The following code is what I have tried.
With:
Nextjs Version:
^12.3.2
React:
^18.0.0
React-dom:
^18.0.0
As to what the following code shows, I have updated the handleApiTokenChange function to set the value of the textarea element in Redis cache. However, when I run the build command, I am getting import errors for packages like dns.
Beta Was this translation helpful? Give feedback.