Input

import {Stringify} from 'shared-runtime';

function Component({foo}) {
  let bar = foo.bar;
  return (
    <Stringify
      handler={() => {
        foo = true;
      }}
    />
  );
}

Error

Found 1 error:

Todo: Support destructuring of context variables

error.todo-reassign-const.ts:3:20
  1 | import {Stringify} from 'shared-runtime';
  2 |
> 3 | function Component({foo}) {
    |                     ^^^ Support destructuring of context variables
  4 |   let bar = foo.bar;
  5 |   return (
  6 |     <Stringify