Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Function is not a valid shorthand #676

Closed
miroslavstastny opened this issue Jan 3, 2019 · 0 comments
Closed

Function is not a valid shorthand #676

miroslavstastny opened this issue Jan 3, 2019 · 0 comments
Labels
vsts Paired with ticket in vsts

Comments

@miroslavstastny
Copy link
Member

Bug Report

Steps

<Menu
  items={[
    render => render(3, (Component, props) => <Component {...props} />)
  ]}
/>

Expected Result

Custom render function is used (as described in #355), no warning

Actual Result

Custom render function is used as expected,
There is warning in console: 💣

Warning: Failed prop type: Invalid prop `items[0]` supplied to `Menu`.
    in Menu (created by App)
    in App
    in ThemeProvider (created by FelaTheme)
    in Provider (created by FelaTheme)
    in FelaTheme (created by ProviderConsumer)
    in ProviderConsumer (created by Provider)
    in Provider

Version

0.15.0

Testcase

https://codesandbox.io/s/6jmvkyyz9w

@pkumarie2011 pkumarie2011 added the vsts Paired with ticket in vsts label Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
vsts Paired with ticket in vsts
Projects
None yet
Development

No branches or pull requests

2 participants