Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Update error for "generic ViewComponents" to explain what a valid view component is #5380

Closed
@NTaylorMullen

Description

@NTaylorMullen

Given the following example:

public class FooViewComponent<T>
{
    public string Invoke(T value)
    {
        return value.ToString();
    }
}

Trying to run this like so:

@{
    Write(await Component.InvokeAsync<FooViewComponent<string>>(new
    {
        value = "Hello World"
    }));
}

Results in the following:
image

Metadata

Metadata

Assignees

Labels

3 - Donebugup-for-grabsMembers of our awesome commnity can handle this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions