Display image query in Nextjs
I take an image input from the user in a route called story, then I used useRoute query to navigate to the home route with the image as a query, then I entered it inside the image tag to display it, but nothing was displayed, and without any error to let me know from where the problem is coming from, this is the code that is used to display the image:
The image query value is created by URL.createObjectURL in the story route, I think this is all the details, if you need anymore info to know the problem please let me know.
0 Replies