singh
1
I’m using HashRouting on my project along with a JavaScript widget.
I’m noticing some weird behaviour that I can’t seem to wrap around.
- The page loads a Kanban board with 10 items in the Todo status.
- I then transition 1 item from ToDo to InProgress
- When I inspect it in Javascript, it shows the correct status (InProgress)
- When I receive it in the python client side code, I get Todo as the status.
Any chance HashRouting is caching the data that I bind to the page?
@stucork 
have you tried it without HashRouting
?
HashRouting only cache’s anvil forms.
singh
3
No not yet. I was trying to avoid going down that path initially as I have to undo quite a bit and handle my pages/forms different.
But I might have to, to rule it out.
Happy to check out a clone link if you have something sharable.
singh
5
Here it is @stucork
Here is how to test.
- Open up your DevTools in Chrome and open the Console
- Drag the first card from ToDo to InProgress
- Notice the data array logged by JavaScript. It shows that the item is in InProgress workstatus
- Now notice the data printed from Python. It shows ToDo
https://anvil.works/build#clone:ZABH4FIVSSDA55WE=ZMCVTK4FLHZD7M3Y3NUQIHXI
singh
6
@stucork
Been playing around with this control further.
I don’t think it has anything to do with HashRouting.
Turns out that it is sending the correct data when I catch a different event against the control. I’m getting the desired data inside Python.
I think I’ll have to reach out to this vendor to see if the “error” is the intended behavior of the previous event.
Thank you for spending the time looking into this with me.
1 Like