In Mode A, server charm should NOT execute. In Mode B, it should execute.
Mode B Active: Rendering server charm with ct.render
{/* Use ct.render to force execution - even hidden, this makes the charm active */}Mode A Active: Server charm wished for but NOT rendered (should not execute)
)}Click to invoke the incrementCounter stream from the server charm. Check the server charm to see if the counter incremented.
{JSON.stringify(
{
useCtRender,
invocationCount,
lastInvocationStatus,
serverCharmExists: serverCharm !== undefined && serverCharm !== null,
serverStreamExists: serverStream !== undefined && serverStream !== null,
},
null,
2
)}