delete method do not erase controller data #1064
Unanswered
mohamadalmoayad
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I have a strange situation may be I have misunderstand about how to use Get.delete() method
I need to clear all data restored in some controllers in some actions so I created a function call delete method for these controllers like that : Get.delete();
the debug console show that the controller deleted from memory
that's good
the line after I re-put the controller again to be ready to use within the app life cycle but the problem that i found all past data still exist nothing happen
what is the problem here?
thank you for help for every one
******** UPDATE ********
I have discovered that I was calling the Get.find() method at the the start of widget class but when I move it inside the widget builder method the data successfully reset
thank you
Beta Was this translation helpful? Give feedback.
All reactions