question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings are printed when testing an Ink component

See original GitHub issue
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.

According to @vadimdemedes:

It’s from React actually. I don’t know how to make it forget about previous Ink reconciler instances. Because in tests you create a new Ink instance in every test, which creates a new React reconciler instance. And React apparently keeps track of context providers, but this conflict happens. Even if tests are run serially, it still complains. I tried unmounting between tests, but didn’t help. I don’t know how to clean up its cache or whatever to make React forget that this context was used before.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vadimdemedescommented, Mar 21, 2019

Update: tried reproducing it with react-dom and I couldn’t get the same warning message, however I did confirm that React isn’t clearing _currentRenderer of the context. This led to another interesting discovery - react-dom doesn’t create a new reconciler instance for each container node (separate app), like Ink does. Instead, react-dom implements getRootHostContext reconciler method, which allows to use one reconciler for multiple containers (apps). I assume if Ink implemented it the same way, this warning would disappear. I will get on it this week.

0reactions
vadimdemedescommented, Mar 22, 2019

Submitted https://github.com/vadimdemedes/ink/pull/170 to fix this. I would appreciate if anyone tried it out with their Ink apps to see if there are any regressions, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

An 'Ink Alert' or 'Low on Ink' Message Displays for HP Officejet ...
Sometimes an 'Ink Alert' or 'Low on Ink' message displays on the computer or the printer control panel and the printer does not...
Read more >
Ink Testing Guidelines - Product Responsibility Best Practices
What factors should I be aware of regarding ink testing? 1. Inks must be tested and certified with “pass” and specific results for...
Read more >
How Much Ink Is Left in That Dead Cartridge? - PCWorld
Our test printers typically left more unused ink–in some cases significantly more–when using third-party or aftermarket print cartridges than ...
Read more >
Analysis of printing inks
Composition of printing inks. 4. III. Procedure of analysis: 4. 1. Separation of oil and pigment. 4. 2. Analysis of the oil. 6....
Read more >
6 Must-Know Things About Silkscreen Printing of PCBs
Ink is printed to form letters, numbers, and symbols. This information helps users identify a variety of things, including warning symbols, test ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found