# isResizeOnlyBatch
Source: https://docs.maelstrom-ai.co/dev/reference/engine/functions/isresizeonlybatch/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **isResizeOnlyBatch**(`reasons`): `boolean`

Defined in: [packages/engine/src/lib/update-reasons.ts:15](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/update-reasons.ts#L15)

Whether every update reason in a batch is a `chart_resize`, so the turn needs a new layout and no new actions.

An empty batch is not resize-only: nothing triggered the turn, so nothing should guard it. Empty and mixed batches both collapse into `false`.

This is the single predicate behind the Engine’s resize-only execution turn and a planner’s prompt-side instruction, so a prompt that says “no actions” and an Engine that drops them always agree. Broadening one side means a second, differently named predicate, not a change here.

## Parameters

### reasons

readonly `UpdateReason`\[\]

## Returns

`boolean`
