docs: add frontend development guidelines
This commit is contained in:
1 parent
f7601d554e
commit
faaa33717f
8 files changed
+213
No files matched your search
@@ -0,0 +1,3 @@
|
||||
# Hook Guidelines
|
||||
|
||||
Use effects for imperative OpenLayers lifecycle only. `MapCanvas.tsx` constructs one map on mount, updates sources when server state changes, and updates visibility separately. Store callback-sensitive values such as selected road and scene mode in refs so stable OpenLayers style callbacks see current values.
|
||||
Reference in new issue
Block a user