#Router.invalidate() stopped working after update [solved in 1.16.6]

19 messages · Page 1 of 1 (latest)

twilit sparrow
#

Hello! I have a strange bug, which I couldn't resolve yet. For some reasons router.invalidate() stopped working after the last update. (I updated from 1.16.0 to 1.16.5) Any idea how to fix this?
Thank you very much for your help!

rancid arrow
#

can you please try to find out which version exactly introduced this bug?

twilit sparrow
#

@rancid arrow Somewhere between 1.16.2 and 1.16.5. (There are no 1.16.3 and 1.16.4 in the registry, so I couldn't try these.)

rancid arrow
#

so 1.16.2 still works?

twilit sparrow
#

Yes!

#

As far as I can tell, there is nothing happening when calling invalidate(). I put some comments in different locations, nothing changes. Even the RouteComponents didn’t reload.

twilit sparrow
#

I can confirm, the same bug exists in the Kitchen-Sink example. (Try to create a invoice at Dashboard/Invoices)

#

The invalidate function is empty...

verbal trout
#

No not at all. Probably an auto fix artifact of eslint.

rancid arrow
twilit sparrow
#

Router.invalidate() stopped working after update [solved in 1.16.6]

#

Thanks 🙏

verbal trout
#

Sorry!

#

I really need to disable the auto fix for removing code after returns. But I think it’s a TS thing.