useCreatePollContext

A hook that returns the CreatePollContext value.

Best Practices

  • Use this hook only within poll creation flows inside Channel.
  • Treat context values as source of truth for form state.
  • Avoid duplicating poll draft state in local component state.
  • Validate required fields before calling send actions.
  • Handle missing context (null) safely in custom flows.