Open jjones315 opened 1 week ago
https://codesandbox.io/p/devbox/trusting-mestorf-dxzhmc
Simplified the repro a little bit. i have narrowed it down to the button component, removing the tooltip in the button or removing the attributes
mechanism and just spreading resolves the issue.
in my full app i do have reasons for adding attributes like this, but i can work around it. although i think this is still a reasonable way to do things and it should work.
Describe the bug
When using stores and classes/context i am seeing errors with undefined data even with what i consider proper checks in place.
The demo is a touch convoluted but this has been minified from a fairly large app and changing too many variables caused errors to be less obvious.
To reproduce the store issue 1 go to the root of the site 2 Click "Go To Form Demo". 3 on the page click "Add Budget" 4 once the "table" appears click "Back" in the top right of the page. 5 notice the console errors, and clicking "Add Budget" again will result in a blank page.
To reproduce the context issue 1 go to the root of the site 2 Click "Go To Context Demo". 3 on the page click "Add Line" 4 once the "delete" and "approve" buttons appear click "Delete". 5 notice the console errors.
Some Notes.
button
element seems to mask these errors some of the time, i have seen them, but its uncommon. Using my "Button" component the errors seem to happen every time. its possible other variables were at play with the element button.Let me know if there is anything i can do to help, again sorry for the slightly more complex repro.
Reproduction
~https://github.com/jjones315/reproduction~
https://codesandbox.io/p/devbox/trusting-mestorf-dxzhmc
Logs
System Info
Severity
annoyance