mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-24 15:58:36 +00:00
It seems the version of doctoc that was used didn't correctly handle backticks and trailing special characters in title names, e.g. it would generate [What Are They?](#what-are-they-) [`inject-cofx`](#-inject-cofx-) Instead of what Github expects: [What Are They?](#what-are-they) [`inject-cofx`](#inject-cofx)
30 lines
692 B
Markdown
30 lines
692 B
Markdown
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
## Table Of Contents
|
|
|
|
- [Question](#question)
|
|
- [Short Answer](#short-answer)
|
|
- [Longer Answer](#longer-answer)
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
### Question
|
|
|
|
How do I access the value of a subscription from inside an event handler?
|
|
|
|
### Short Answer
|
|
|
|
You shouldn't.
|
|
|
|
Philosophically: subscriptions are designed to deliver "a stream" of new values
|
|
over time. Within an event handler, we only need a one off value.
|
|
|
|
Operationally: you'll end up with a memory leak.
|
|
|
|
### Longer Answer
|
|
|
|
|
|
|
|
|
|
|