Skip to content

Conversation

@MidhunSureshR
Copy link
Member

We were creating a new instance of the vm each time the timeline re-rendered.

* Without the wrapping component, this code will throw a bunch of invalid hook call errors.
*/
const TextualEventWrapper: React.FC<FactoryProps> = (props) => {
const vm = useCreateAutoDisposedViewModel(() => new TextualEventViewModel(props));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the prop change, the vm is not updated

@MidhunSureshR MidhunSureshR marked this pull request as draft December 19, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants