This is documentation for Stream Chat React Native SDK v8, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).
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.