Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Nav is called upon row focus #44

Open
wilkerlucio opened this issue Dec 22, 2020 · 0 comments
Open

Nav is called upon row focus #44

wilkerlucio opened this issue Dec 22, 2020 · 0 comments

Comments

@wilkerlucio
Copy link

I was playing with the nav I noticed that REBL triggers nav upon row selection on the table view. Given the purpose of nav is to do lazy navigation, triggering nav on focus is unexpected.

Repro case:

(with-meta {:a 1} {`p/datafy (fn [x] (with-meta x {`p/nav (fn [c k v] (println 'nav c k v) v)}))})

When you log this structure, it does the print immediately, before navigating to it. This may cause long wait times if the navigation of the first key is some complex operation.

@wilkerlucio wilkerlucio changed the title Nav is called early Nav is called upon row focus Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant