Skip to content

Is it safe to deref an external atom inside an event handler? #800

Answered by hipitihop
JordanSkousen asked this question in Q&A
Discussion options

You must be logged in to vote

@JordanSkousen Atoms read or modified in a fx handler should be fine, assuming all atoms are only modified via re-frame event handlers.

However this raises a fundamental design question: Why is this state managed outside of app-db in other atoms as opposed to properties app-db db ?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JordanSkousen
Comment options

@hipitihop
Comment options

@JordanSkousen
Comment options

Answer selected by JordanSkousen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants