NoriginMedia / Norigin-Spatial-Navigation

React Hooks based Spatial Navigation (Key & Remote Control Navigation) / Web Browsers, Smart TVs and Connected TVs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow `ref` on items not yet displayed. (see below for more info)

briannovak opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
With the release of 2.0.2 and the addition of the console.warning for empty nodes/refs, this adds unnecessary information in our logs because we have app-level Modals that are rendered but not displayed until a certain condition exists. Thus the ref is undefined and causes the warning.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Allow modals and other things rendered in the background to not trigger this warning.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Turning console warnings off

Additional context
Add any other context or screenshots about the feature request here.