Skip to content

HookM code that modifies state can't be passed between components #37

@marcusbuffett

Description

@marcusbuffett

Having an issue where calling a HookM callback from a child component results in an error like this:

Error: Failed pattern match at Data.Maybe (line 268, column 1 - line 268, column 46): Nothing2 bundled.js:2788:15
    fromJust http://127.0.0.1:4201/bundled.js:2788
    unsafeSetCell http://127.0.0.1:4201/bundled.js:39115
    interpretHalogenHook http://127.0.0.1:4201/bundled.js:39663
    interpretHalogenHook http://127.0.0.1:4201/bundled.js:39673

Here's a project that reproduces the problem: https://github.com/marcusbuffett/hooks-issue-example

This is a follow-up from messages on slack where the modal would call the close function but it wouldn't get closed, but it seems in trying to create a reproducible example, I encountered a different issue.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    document meImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions