-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add logger components #709
Conversation
Closes: #449
Deploying react-science with Cloudflare Pages
|
Usage: import { FifoLogger } from 'fifo-logger';
const fifoLogger = new FifoLogger();
function App() {
return (
<FifoLoggerProvider logger={fifoLogger}>
// ...
<FifoLoggerToolbarItem />
</FifoLoggerProvider>
);
} To add logs: function ComponentAddingLogs() {
const logger = useFifoLogger();
// In callback / useEffect
logger.info('info');
} To get render something when the logs are updated: function ComponentThatNeedsLogs() {
const logs = useFifoLogs();
} |
@lpatiny This PR is awaiting your review @moonayyur can you have a look as well? Because you designed a similar component in pixelium and the goal is to replace it with this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality LGTM but there is no storybook so it may be difficult to find this component,
Closes: #449