Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom view content that returns JSX does not appear #7160

Closed
1 task done
Azaryan-A opened this issue Jan 20, 2023 · 4 comments
Closed
1 task done

Custom view content that returns JSX does not appear #7160

Azaryan-A opened this issue Jan 20, 2023 · 4 comments
Assignees
Labels
Confirmed React Only View API Custom views, view-specific options, view triggers
Milestone

Comments

@Azaryan-A
Copy link

Azaryan-A commented Jan 20, 2023

Reduced Test Case

https://github.com/Azaryan-A/fc-v6-custom-view-test

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

React

Bug Description

Custom view content appears only if its type is a string. But I want to set react component as custom view content. But then nothing was displayed.

@acerix acerix added Confirmed View API Custom views, view-specific options, view triggers React Only labels Jan 23, 2023
@acerix
Copy link
Member

acerix commented Jan 23, 2023

Thanks, confirmed. Here's a runnable version:

https://stackblitz.com/edit/github-urj6el?file=src%2FDemoApp.jsx

@acerix acerix changed the title Custom views not working after updating from v5 to v6 Custom view content that returns JSX does not appear Jan 23, 2023
@acerix
Copy link
Member

acerix commented Jan 23, 2023

As a workaround, HTML can be returned in an object like this:

https://stackblitz.com/edit/github-urj6el-np94rn?file=src%2FDemoApp.jsx

@arshaw arshaw added this to the v6.0.4 milestone Jan 24, 2023
@arshaw
Copy link
Member

arshaw commented Jan 31, 2023

@arshaw arshaw closed this as completed Jan 31, 2023
@Azaryan-A
Copy link
Author

Thank you guys, now everything is ok. Thank you for your fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed React Only View API Custom views, view-specific options, view triggers
Projects
Archived in project
Development

No branches or pull requests

3 participants