Info:
This is documentation for Stream Chat React Native SDK v9, which is no longer actively maintained. For up-to-date documentation, see the latest version (v10).

useCreatePollContext

The useCreatePollContentContext hook returns the CreatePollContentContext 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.