about presenter lifecycle and signals

alnux
Member | 139
+
0
-

I have a question, in the life cycle of the presenters link the actions are called before the renders, does this also happen with the handlers? For example, I have the handler

function handleMysignal() {
}

According to the lifecycle of the presenter this would call actionMysignal() before handleMySignal() ??

thanks for your help

Rick Strafy
Nette Blogger | 65
+
+1
-

Yes, but be careful, handleMySignal can be called from another action and bypass some check in the action you are thinking it will be called from.

Last edited by Rick Strafy (2023-09-01 17:37)

alnux
Member | 139
+
0
-

Rick Strafy wrote:

Yes, but be careful, handleMySignal can be called from another action and bypass some check in the action you are thinking it will be called from.

@RickStrafy could you give an example about what are talking about, becouse i was looking at the doc and i can find somthing about. really thanks