codesandbox / codesandbox/codesandbox-client
Array shows up as empty on next line
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
An array declared shows as empty array in console.log() on the next line
How has this issue affected you? What are you trying to accomplish?
Cost me a job.
To Reproduce
Check the console of the sandbox. Why is childTrees empty array
Link to sandbox: https://codesandbox.io/s/fragrant-smoke-o04xw2?file=/src/index.js (optional)
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | |
| Browser | chrome v113.0.562.93 |
| Operating System | Windows 10 Pro 22H2, build v19045.2965 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked CodeSandbox and inspect src/index.js, then reproduce the console output for childTrees. Determine whether the array is actually empty or only displayed that way on the next line; the issue is complete only when the cause and expected console behavior are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100