Trying to make this work when having header and footer as slices with a set locale in the slice context. Works ok in dev mode but can’t build due to this error:
My guess is I can’t use useIntl() hook in the slice and need to do something else. Not sure what tho? Anybody have a good solution to the problem?
Trying to make this work when having header and footer as slices with a set locale in the slice context. Works ok in dev mode but can’t build due to this error:
My guess is I can’t use
useIntl()
hook in the slice and need to do something else. Not sure what tho? Anybody have a good solution to the problem?