Skip to content

Commit c54ec96

Browse files
Configured Gatsby Lodash plugin
To prevent UI freezes/frame drops when users typing in the input field while the grid reacts to the changes immediately a debounce might be used. It can wait some milliseconds before actually filtering the grid by the given search term. To get the best performance Lodash (1) can be used through "gatsby-plugin-lodash" (2) which sets up "babel-plugin-lodash" (3) and "lodash-webpack-plugin" (4). References: (1) https://lodash.com (2) https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-lodash (3) https://github.com/lodash/babel-plugin-lodash (4) https://github.com/lodash/lodash-webpack-plugin GH-119
1 parent a2145de commit c54ec96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = {
5656
"gatsby-plugin-svgr",
5757
"gatsby-plugin-sitemap",
5858
"gatsby-plugin-webpack-size",
59+
"gatsby-plugin-lodash",
5960
{
6061
resolve: "gatsby-plugin-canonical-urls",
6162
options: {

0 commit comments

Comments
 (0)