Hey, this really depends on your implementation.

In my case the form action returns two objects — the Balance object and the corresponding Record object. If your implementation requires only one object his is why you are getting the error “need more than one value to unpack”.

Change the function to return the object you want to redirect to.

Written by

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store