danmurphy
08/12/2022, 3:00 PMSafety()
and Improvements()
), both of which end up calling the same list()
function on the injected Service. If handlerCaching
is true in ColdBox.cfc, the correct handler methods get called from React but they end up with the same response from the list function in the service. Problem is solved if I disable handlerCaching
.
Also, if we keep handlerCaching
enabled, remove the injected service property, and instead use getInstance twice, once in Safety()
and once in Improvements()
, to create the Service object in the handler, this also solves the problem.
Is this weird? Are we doing something wrong?