evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

Table.Row - Context.Provider missing 'value' prop

Open MarosPistej opened this issue 5 years ago • 9 comments

Description There seems to be bug in Table.Row that value prop is missing in <Context.Provider> as described in console warning

Warning: The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?
    at TableRow

image

Additional context Code sandbox warning example using evergreen-ui table sample bellow Warning example

MarosPistej avatar Jan 26 '21 16:01 MarosPistej

🌝 i downgrade the react version from 17.x to 16.x, then the warning disappeared.

[email protected] Warn when no value is provided to <Context.Provider> https://github.com/facebook/react/pull/19054

billyct avatar Feb 07 '21 14:02 billyct

I also have this issue, after upgrading versions of React. It appears that setting a value to context providers is now a required field and throws a warning if not as of:

  • https://github.com/facebook/react/issues/19020
  • https://github.com/facebook/react/pull/19054 Is there a workaround or solution that doesn't involve downgrading react versions. Thanks

tomhands1 avatar Feb 08 '21 15:02 tomhands1

Also interested in this.

dikaio avatar Feb 18 '21 06:02 dikaio

Getting the same warning on my end!

Samuel-Montoya avatar May 13 '21 23:05 Samuel-Montoya

Resolved by #1256

mshwery avatar Jul 14 '21 22:07 mshwery

Resolved by #1256

Unfortunately i'm still getting this exact error on 6.1.0

jackamondo avatar Jul 21 '21 13:07 jackamondo

Unfortunately i'm still getting this exact error on 6.1.0

Yep! I don't think we've cut a release since that PR got merged

mshwery avatar Jul 21 '21 14:07 mshwery

Unfortunately i'm still getting this exact error on 6.1.0

Yep! I don't think we've cut a release since that PR got merged

My mistake!! :-)

jackamondo avatar Jul 21 '21 16:07 jackamondo

Fixed in 6.2.0 https://github.com/segmentio/evergreen/releases/tag/v6.2.0

Sti2nd avatar Jul 28 '21 07:07 Sti2nd