CodeForAfrica / CodeForAfrica/ui

`@/hurumap/next/Map`

Open
#799 0 comments 0 reactions 2 assignees Claimed by @m453h View on GitHub
bug
Dominant language
JavaScript
Stars
3
Forks
2
Avg merge
3d 1h
Merged PRs (30d)
5

Description

**Describe the bug**

On pages where Map component is used, there is the following warning:

`Warning: useLayoutEffect does nothing on the server because its effect cannot be encoded into the server renderer's output form`

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

No warning.

**Screenshots**

N/a

**Desktop (please complete the following information):**

All

**Smartphone (please complete the following information):**

All

**Additional context**

Review why `useLayoutEffect` was used and if there is a way around that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.