react-form-stepper icon indicating copy to clipboard operation
react-form-stepper copied to clipboard

Style or Css Missing on Reload

Open MarkGersaliaPH opened this issue 1 year ago • 6 comments

Good day, Im using react and Inertia for my app..

react-form-stepper seems losing its style when the inertia reloads.

image This is the screen shot before..

image This is what happens, after.

do you have any Idea?

Thank you in advance.

Regards

MarkGersaliaPH avatar Nov 10 '22 01:11 MarkGersaliaPH

I have the same issue

willpiam avatar Feb 01 '23 22:02 willpiam

I'm also facing the same issue..did you find solution?TIA

kalaivanysupramany794 avatar Feb 09 '23 15:02 kalaivanysupramany794

I didn't fix it, as I remember I just used manual css

MarkGersaliaPH avatar Feb 10 '23 08:02 MarkGersaliaPH

I am having the same issue

jlfabi avatar Apr 14 '23 20:04 jlfabi

for me resolved when i used this (in the docs):

Using with SSR
When developing an SSR application with a framework like Next.js you might face your console being polluted with the following message Warning: [JSS] Rule is not linked. Missing sheet option "link: true". caused by the underlying dependency react-jss. A workaround is to use the dynamic import module like in the example below.

example:

//StepperProgress.tsx

import { Stepper } from 'react-form-stepper'
import { StepperProps } from 'react-form-stepper/dist/components/Stepper/StepperTypes'

const StepperProgress = ({ steps, activeStep, ...props }: StepperProps) => {
  return <Stepper steps={steps} activeStep={activeStep} {...props} />
}

export default StepperProgress

//index.ts

import dynamic from 'next/dynamic'

export const StepperComponent = dynamic(() => import('./StepperProgress'), {
  ssr: false,
})

Same issue for me, any workaround??

happymango7 avatar Sep 12 '23 11:09 happymango7