Nutrient Web SDK

v0.0.0-dev

ReferenceUISlotHelpers

Interface SlotHelpers

Helpers passed as the third argument to a UI.SlotConfigurationCallback.

  • requestUpdate — call this to ask the SDK to invoke the slot's render function again. Use it from inside event handlers, async callbacks, or any imperative code that updates state the slot reads. Calls are coalesced inside a single React render pass.
Interface

Properties

() => void

Ask the SDK to invoke this slot's render function again with the current params.

Call it from event handlers, async callbacks, lifecycle hooks, or any other imperative code that updates state the slot reads — but not synchronously from within render itself, which would cause an update loop. Re-renders are coalesced: calling it many times synchronously results in a single render invocation.