Skip to content

What if things are not :ok? #11

Description

@iamvery

Problem

Currently the LiveView helpers assume in nearly all cases that the value piped along follows the form {conn, {:ok, view, html}}. This does not account for other cases such as {:error, {:redirect, ...}} and {:error, {:live_redirect, ...}}.

(Potential) Solution

Provide additional function heads to handle alternative scenarios. At this time, it's unclear to when what such scenarios may be, so we should first identify use cases and then figure out how to adapt the library to solve those problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions