Context.get does not work for client entry that is rendered by a `<Frame />`
Author: sreekar339339Created Jun 20, 2026Updated Sep 17, 2026
repro: https://github.com/sreekar339339/learn-remix
Go to the /todolist route and perform the delete or check todo action and see the console print Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'dispatchEvent') at submit (todoItems.tsx:18:21).
This undefined object is actionEventTarget accessed via handle.context.get(TodoList).
actionEventTarget = handle.context.get(TodoList)
console.log({actionEventTarget}, actionEventTarget) // line 18TodoItems component is handled by a Frame in addition to it being a Client entry.
The same context is accessed correctly by the AddTodo component, which is not Frame rendered.
Source: remix-run/remix