An agile planning application that tracks tasks, ideas and nutrition goals. This app is designed to assist with everyday productivity, progress tracking and fitness.
1
stars
0
forks
source link
Logs are triggering output of the dictionary way too many times #68
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Go to the browser. Press control + i and go into the console log output with the react application running.
Click on the console and make sure that only the info and log are toggled.
Scroll down to log.
See error. The dictionary is being sent to the log more than 10 times.
Expected behavior
I just needed the dictionary to display once in the log after everything was added to it from the loop.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Browser FireFox
Version 127.0 64 Bit
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
The reason that this was such a big problem was because the console logs weren't contained inside of the if () {} code brackets. This caused the execution of the console log to occur any time the for loop happened. This was preventing me from isolating a dictionary built from a customized filter. I needed to do this so that I can load from the ui states based on these conditions in the future if save data is present in the local storage.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior I just needed the dictionary to display once in the log after everything was added to it from the loop.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context The reason that this was such a big problem was because the console logs weren't contained inside of the if () {} code brackets. This caused the execution of the console log to occur any time the for loop happened. This was preventing me from isolating a dictionary built from a customized filter. I needed to do this so that I can load from the ui states based on these conditions in the future if save data is present in the local storage.