What is the best pattern for setting up initial persistent state in the durable object? The tutorial

What is the best pattern for setting up initial persistent state in the durable object? The tutorial code seems to use conditionals on first read, but that feels a bit ugly.
Was this page helpful?