Closed brenzi closed 1 year ago
weird... I don't get this error. Could it be a cache issue?
no cache issue. it only happens if you click on aggregation blobs
Ok. I might have finally found the reason for this Problem, but I'm still working on how to fix the issue. The Problem described above comes from that cid and ui.selected aren't a CID when clicking on a community cluster, but something called a Marker.
I then realized that they don't store an Object called Marker but a String called "Marker". I then had to Dig even deeper to find out where this is happening and right now my theory is that the onClick event handler of the CommunitiesClusters component in Map.js gives us a String when you press the CommunitiesCluster.
Thinking it might happen with all the onClick event handlers I tried with a Button, but there the thing you get is an Object.
I then dug even deeper trying to find out why it's doing that and found that the event type of the onClick event handler of the CommunitiesClusters component, type Leaflet.LeafletMouseEvent is.
I then found out that LeafletMouseEvent extends another Component called LeafletEvent which has type String.
So LeafletEvent has typeString.
But here lies the Problem. I cannot overwrite these interfaces as I think they are JS native.
Will look into it on how I can solve this Problem.
As this has worked before, I suggest you focus your investigation on the most recent changes
I still haven't found the Problem, as I looked if I ever modified something that could explain the Problem and found nothing. But I keep getting this Warning when I use yarn start. Maybe it's this that gives us the error? This would mean that at some point in time some files in node_modules got deleted.
Currently still haven't found the Problem. I think I might need some help on this issue.
@clangenb
Can you double-check if it still exists? I can't reproduce it now (I used to be able to do it I think), it could be that https://github.com/encointer/explorer/pull/116 accidentally fixed the issue.
EDIT: I can't reproduce it locally with yarn start
in chrome, firefox and brave on a88f28cd841d784939a6777701dbe60dfa50ab41
Haha, sometimes you need to trust your guts, I think https://github.com/encointer/explorer/pull/118 fixed it. The deployed version does not have the error anymore.
On Gesell and Kusama, this happened:
https://explorer.encointer.org/?rpc=wss%3A%2F%2Fgesell.encointer.org