day8/re-frame-10x

[Bug]: event history (epoch) arg expansion faulty

hipitihop opened this issue · 2 comments

What happened?

When multiple invocation of the same event appears in the history:

  • only args in the first element can be expanded. Following events/args do not respond to the mouse click.
  • when you do expand the arg on the first element, ALL events args are shown.

Before expanding:
image

After expanding first element:
image

10x Version

1.5.0

Reagent Version

1.1.1

React Version

17.0.2

re-frame Version

1.3.0

What browsers are you seeing the problem on?

Chrome

Relevant console output

No response

kimo-k commented

Can't repro. I tried a shadow-cljs project with those lib versions, tested on google-chrome-stable debian:

(rf/reg-event-db ::test (fn [_ args] args))

(let [lorem "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
      keys (map keyword "abcdefg")
      arg (->> (repeat lorem) (map vector keys) (into {}) (map vector keys) (into {}))]
  (dotimes [_ 10] (rf/dispatch [::test arg])))

@kimo-k I'll try and reproduce this with v1.7.0