Skip to content

Conversation

@purnimagupta
Copy link

UserInteractionResource:

  • make origin as optional

TrackerProps:

  • change optional proptype context from string to UserInteraction.DataContext
  • add origin to UserInteractionResource only if present

WithTracking:

  • don't pass HOC-specific props to original component. Original component should receive only its own props.

Templates:

  • demonstrate how to override/provide your own dataContext object if needed
UserInteractionResource: - make origin as optional TrackerProps: - change optional proptype context from string to UserInteraction.DataContext - add origin to UserInteractionResource only if present WithTracking: - don't pass HOC-specific props to original component. Original component should receive only its own props. Templates: - demonstrate how to override/provide your own dataContext object if needed
booleanhunter added a commit that referenced this pull request Apr 15, 2025
refactor(UserInteractionResource): Change context prop type
@booleanhunter booleanhunter deleted the fix/hoc-context branch April 15, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants