solidjs / solid-docs-legacy

OLD documentation for SolidJS and related packages, replaced by https://github.com/solidjs/solid-docs-next
https://www.solidjs.com/
MIT License
188 stars 151 forks source link

Bindings/Refs Tutorial Section broken #206

Open Crisfole opened 2 years ago

Crisfole commented 2 years ago

Describe the bug

I was running through the tutorial when I hit the bindings/refs segment:

https://www.solidjs.com/tutorial/bindings_refs?solved

Nothing happened. I can see the onMount and loop functions being called (logs demonstrated that), but the putImageData is a no-op (which definitely doesn't make sense).

I tried this in both Chromium Edge and Firefox.

I'm on a Windows machine.

Your Example Website or App

https://www.solidjs.com/tutorial/bindings_refs?solved

Steps to Reproduce the Bug or Issue

  1. Navigate to https://www.solidjs.com/tutorial/bindings_refs?solved
  2. Click "Solve"
  3. Observe Nothing.

Expected behavior

I expected to see something (anything really) rendered to the canvas. I haven't read the code carefully enough to know what I should be seeing.

Screenshots or Videos

image

Platform

Additional context

No response

Crisfole commented 2 years ago

To be fair, I still learned how refs worked (as expected), but I imagine it could be troublesome for a newer dev.

ryansolid commented 2 years ago

Thank you will move this to the appropriate place.

mpacary commented 1 year ago

Similar issue here with Chrome Version 109.0.5414.75 (Official Build) (64-bit) : When adding a console.log() at top of function loop() or onMount(() => { ... }), nothing appears in console. Only adding a console.log() at top of App() makes it appear in console.

Bindings/Forwardings refs page demo is also broken.