File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 171171 {
172172 "name" : " REDMOND\\ xuefl" ,
173173174+ },
175+ {
176+ "name" : " Mert Donmezyurek" ,
177+ 174178 }
175179 ],
176180 "repository" : {
203207 " treeview"
204208 ],
205209 "dependencies" : {
206- "flux" : " ~4.0.1" ,
207210 "react-base16-styling" : " ~0.9.0" ,
208211 "react-lifecycles-compat" : " ~3.0.4" ,
209212 "react-textarea-autosize" : " ~8.3.2"
Original file line number Diff line number Diff line change 1- import { Dispatcher } from 'flux'
2- const dispatcher = new Dispatcher ( )
1+ class Dispatcher {
2+ handler = ( ) => { }
3+
4+ register ( handler ) {
5+ this . handler = handler
6+ }
7+
8+ dispatch ( data ) {
9+ this . handler ?. ( data )
10+ }
11+ }
12+
13+ if ( ! globalThis . __globalDispatcherInstance ) {
14+ globalThis . __globalDispatcherInstance = new Dispatcher ( )
15+ }
16+
17+ const dispatcher = globalThis . __globalDispatcherInstance
318export default dispatcher
You can’t perform that action at this time.
0 commit comments