You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrating the StateInspector into a strict TypeScript react project will fail at build time.
Inserting React Nodes as a children prop into the StateInspector component will result with a TypeError.
In my specific case I was trying to insert my App component as a children prop and got an error from my IDE.
After reviewing the source code, indeed the children prop was not defined and there was no use of the PropsWithChildren type.
This is absolutely necessary in my opinion, and I am willing to provide a solution and post a pull request to fix this issue.
The text was updated successfully, but these errors were encountered:
Description
Integrating the
StateInspector
into a strict TypeScript react project will fail at build time.Inserting
React Nodes
as a children prop into theStateInspector
component will result with aTypeError
.In my specific case I was trying to insert my App component as a children prop and got an error from my IDE.
Error message
Code Example
Suggestion
After reviewing the source code, indeed the children prop was not defined and there was no use of the
PropsWithChildren
type.This is absolutely necessary in my opinion, and I am willing to provide a solution and post a pull request to fix this issue.
The text was updated successfully, but these errors were encountered: