Skip to content

Commit

Permalink
fix(react): useSwiper context value (#5421)
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky authored Feb 3, 2022
1 parent 846ad9e commit 60cbe75
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/react/swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,7 @@ const Swiper = forwardRef(
className={uniqueClasses(`${containerClasses}${className ? ` ${className}` : ''}`)}
{...restProps}
>
<SwiperContext.Provider
value={{
swiper: swiperRef.current,
nextEl: nextElRef.current,
prevEl: prevElRef.current,
scrollbarEl: scrollbarElRef.current,
paginationEl: paginationElRef.current,
}}
>
<SwiperContext.Provider value={swiperRef.current}>
{slots['container-start']}
{needsNavigation(swiperParams) && (
<>
Expand Down

0 comments on commit 60cbe75

Please sign in to comment.