JSTQL-JS-Transform/output_testing/1064unknown-hooks-do-not-assert.js

7 lines
No EOL
278 B
JavaScript

// Forget currently bails out when it detects a potential mutation (Effect.Mutate)
// to an immutable value. This should not apply to unknown / untyped hooks.
function Component(props) {
const x = props |> useUnknownHook1(%);
const y = x |> useUnknownHook2(%);
return y;
}