File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @aha-app/mvc" ,
3- "version" : " 0.11.1 " ,
3+ "version" : " 0.11.2 " ,
44 "description" : " Simple MVC framework using React for the view and GraphQL for the models." ,
55 "main" : " dist/index.js" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ class ApplicationController<
146146 */
147147 destroy ( ) { }
148148
149+ /**
150+ * Internal destroy function. Do not override
151+ * @private
152+ */
149153 internalDestroy ( ) {
150154 this . destroy ( ) ;
151155 }
@@ -326,7 +330,6 @@ function Controller<Props = {}>({
326330 useEffect ( ( ) => {
327331 return ( ) => {
328332 debug ( 'Destroying controller' ) ;
329- if ( controller . destroy ) controller . destroy ( ) ;
330333 controller . internalDestroy ( ) ;
331334 } ;
332335 } , [ controller ] ) ;
You can’t perform that action at this time.
0 commit comments