You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stated meta-information extension capability of the stated-bean can be used to implement more functions. For example, the routing parameters and the stated field are automatically synchronized.
classStatedRouteInterceptorimplementsStatedInterceptor{asyncstateInit(context: EffectContext,next: NextCaller){// if with @RouteParam// get name value from route// context.setValue('test');awaitnext();}asyncstateChange(context: EffectContext,next: NextCaller){// if with @RouteParamconstvalue=context.value;awaitnext();// sync to router}}
The text was updated successfully, but these errors were encountered:
Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!
The stated meta-information extension capability of the stated-bean can be used to implement more functions. For example, the routing parameters and the stated field are automatically synchronized.
/?name=test
, the initial value ofa
will be set totest
a
changes, the route will be synchronized./?name=test2
@RouteParam
StatedBeanMetaStorage
StatedRouteInterceptor
The text was updated successfully, but these errors were encountered: