#how to prevent resubmission of routeAction$ on browser reload?

2 messages · Page 1 of 1 (latest)

verbal nexus
#

Hi, today I played with the todo app example and it seems the routeAction$ for useAddToListAction re-submits every time I refresh the browser after taking an action, this is pretty confusing, is there a way to prevent this behavior?

pulsar osprey
#

can you share a snippet of code? the action should only trigger when used within a form or button element onClick$ for example. Are you using useAddToListAction without an onClick or within a Form?