Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on scroll or on visible #5

Open
thediveshsharma opened this issue Nov 7, 2023 · 1 comment
Open

Not working on scroll or on visible #5

thediveshsharma opened this issue Nov 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@thediveshsharma
Copy link

Current Behavior

Component is not working as expected when scrolled to view.
SCSS is not loading , nor JS is getting downloaded .
Example faq section collapse/uncollapse not working.

Expected Behavior

When scrolled to view FAQ section should have SCSS classes and collapse and uncollapse (onclick show/hide should work)

Steps to Reproduce the Problem

Environment

  • Version: "dependencies": {
    "aws-sdk": "^2.1414.0",
    "axios": "^0.27.2",
    "bootstrap": "^4.6.2",
    "cheerio": "^1.0.0-rc.12",
    "dayjs": "^1.11.5",
    "env-cmd": "^10.1.0",
    "express-http-context": "^1.2.4",
    "google-recaptcha-v2": "^1.0.4",
    "js-base64": "^3.7.2",
    "js-cookie": "^3.0.1",
    "lodash": "^4.17.21",
    "next": "12.2.5",
    "next-lazy-hydrate": "^1.1.0",
    "next-pwa": "^5.6.0",
    "node-sass": "^7.0.1",
    "react": "18.2.0",
    "react-confetti-explosion": "^1.0.3",
    "react-dom": "18.2.0",
    "react-google-login": "^5.2.2",
    "react-google-recaptcha": "^2.1.0",
    "react-intersection-observer": "^9.5.0",
    "react-linkedin-login-oauth2": "^2.0.0",
    "react-modal-video": "^1.2.9",
    "react-redux": "^8.0.2",
    "react-share": "^4.4.0",
    "react-slick": "^0.29.0",
    "react-star-ratings": "^2.3.0",
    "reactstrap": "^8.9.0",
    "redux": "^4.2.0",
    "redux-thunk": "^2.4.1",
    "s3-streamlogger": "^1.9.0",
    "sass": "^1.54.7",
    "slick-carousel": "^1.8.1",
    "winston": "^3.9.0"
    },
  • Platform: Windows 11
  • Node.js Version: node:14.17
@thediveshsharma thediveshsharma added the bug Something isn't working label Nov 7, 2023
@thediveshsharma
Copy link
Author

It was not working with 'visible' 'scroll' , it worked when I used compatible mode : true
const Footer = lazyHydrate(() => import('../footer/index'), {
compatibleMode: true,
on: ['visible', 'scroll'],
});

@thediveshsharma thediveshsharma changed the title JS doesn't get downloaded and CSS is not applied when using this library. Not working on scroll or on visible Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant