You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sometimes forget to destructure or deep clone a nested Hookstate object when assigning state, which often results in a proxy object placed within the state object. When this happens, the error thrown is a "call stack exceeded" RangeError within the Hookstate library later when rendered. However, this error message doesn't provide a clear indication of the mistake.
Is it possible to implement a check to detect this specific scenario and provide a more informative error message to guide users in identifying and correcting their mistake?
The text was updated successfully, but these errors were encountered:
It is possible but it would require deep check of all fields and nested fields which hits the performance. Maybe do it in development mode only?. When this error happens it should not have call stack exceeded exception. Can you submit a reproducer for this case so I could check if this exception can be replaced by a better one?
I sometimes forget to destructure or deep clone a nested Hookstate object when assigning state, which often results in a proxy object placed within the state object. When this happens, the error thrown is a "call stack exceeded" RangeError within the Hookstate library later when rendered. However, this error message doesn't provide a clear indication of the mistake.
Is it possible to implement a check to detect this specific scenario and provide a more informative error message to guide users in identifying and correcting their mistake?
The text was updated successfully, but these errors were encountered: