REDux pattern for HOTwire == Redhot
22-Jul-2022 1112
Single page applications using redux (react) are very popular. And with good reason, redux makes maintaining the current state of the app easy. For instance when building some kind of editor, every action of the user is added to the redux store. All actions can be reduced to the determine the current state of the editor. Views are rendered using the current state.Or when building a complex search page for a webshop. Whenever the user selects a category or price range to filter on this can be an action for the redux store. If the user hits the back button the last action can be deleted and the current state regenerated by reducing all remaining actions. The user only sees the last filter being reverted to what it was before.
REDux pattern for HOTwire == Redhot #ruby #rubydeveloper #rubyonrails #REDux #pattern #HOTwire #Redhot #hotwire https://rubyonrails.ba/link/redux-pattern-for-hotwire-redhot