Hey @geoff.talbot, Thanks for getting back to us!
- We had attach a Jira ticket with your query and keep you updated.
- Yes, this is because of the same issue. We are able to reproduce that the state is not accessible within
if (Builder.isServer) { } - Using state in
if (Builder.isServer || Builder.isEditing)will make the code run both in server and client-side.
Let us know if you have further concerns!