Closed tennox closed 1 day ago
I found weird behaviour when I was missing a closing curly in my output pattern:
`const navigate = useNavigate()` => `const {locnav, location, navigate = useLocationNavigate()`
It didn't fail but weirdly removes a completely unrelated statement's const prefix: https://app.grit.io/studio?key=ndJC5UF8gvqYnDDY0urXP
const
I can see if that's a too weird edge-case and I should just fix my code, but I wanted to let you know in case you want to refine your UX :thinking:
Thanks for the report. We have some matching heuristics around rewrites that this is capturing, but those heuristics are only really designed to work with well-structured rewrites.
I found weird behaviour when I was missing a closing curly in my output pattern:
It didn't fail but weirdly removes a completely unrelated statement's
const
prefix: https://app.grit.io/studio?key=ndJC5UF8gvqYnDDY0urXPI can see if that's a too weird edge-case and I should just fix my code, but I wanted to let you know in case you want to refine your UX :thinking: